Skip to content

Commit

Permalink
404 redirect when URL is not parsable - Fixes #867 (#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoChevalier committed Apr 24, 2017
1 parent 4d32b5b commit 0d34950
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/inc/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// Log any other case of URL not parsable that we don't know of yet.
if ($url === false) {
error_log('app/inc/router.php: ' . $_SERVER['REQUEST_URI'] . ' is not parsable.');
$url['path'] = '404';
}

$file = pathinfo($url['path']);
Expand Down

0 comments on commit 0d34950

Please sign in to comment.