Skip to content

Commit 0d34950

Browse files
404 redirect when URL is not parsable - Fixes #867 (#868)
1 parent 4d32b5b commit 0d34950

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/inc/router.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
// Log any other case of URL not parsable that we don't know of yet.
1919
if ($url === false) {
2020
error_log('app/inc/router.php: ' . $_SERVER['REQUEST_URI'] . ' is not parsable.');
21+
$url['path'] = '404';
2122
}
2223

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

0 commit comments

Comments
 (0)