Permalink
Browse files

404 redirect when URL is not parsable - Fixes #867 (#868)

  • Loading branch information...
TheoChevalier committed Apr 24, 2017
1 parent 4d32b5b commit 0d34950a8538648ad2488af5c1837eadeeb815f0
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/inc/router.php
View
@@ -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']);

0 comments on commit 0d34950

Please sign in to comment.