Skip to content

Commit

Permalink
don't restrict filenames in doc controller
Browse files Browse the repository at this point in the history
  • Loading branch information
craigh committed Jul 14, 2017
1 parent 3ea2431 commit 98839d7
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,8 @@ public function __construct(
* @param string $name
* @return Response
*/
public function displayAction(Request $request, $name = 'INSTALL-1.4.md')
public function displayAction(Request $request, $name = 'INSTALL-2.0.md')
{
// @TODO this is temporary method of restricting the user input
if (!in_array($name, ['INSTALL-1.4.md', 'UPGRADE-1.4.md', 'CHANGELOG.md', 'README.md'])) {
$name = 'INSTALL-1.4.md';
}
$this->setBasePath($request);

if (file_exists($this->basePath . "/$name")) {
Expand Down

0 comments on commit 98839d7

Please sign in to comment.