diff options
| author | czaks <marcin@6irc.net> | 2015-04-02 20:35:17 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-04-02 20:35:17 +0200 |
| commit | 018ec3b605091af93b58a48d563410976212d470 (patch) | |
| tree | eab6021acfce52b81517e952ab8010ea14dbae6d /smart_build.php | |
| parent | 67db118f1e77f864aa42fc6e81e2a8a2bf7bbcd4 (diff) | |
smart_build.php: additional fixes
Diffstat (limited to 'smart_build.php')
| -rw-r--r-- | smart_build.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/smart_build.php b/smart_build.php index 56299aee..d8352621 100644 --- a/smart_build.php +++ b/smart_build.php @@ -124,6 +124,7 @@ $entrypoints['/%b/catalog.html'] = 'sb_catalog'; $reached = false; $request = $_SERVER['REQUEST_URI']; +list($request) = explode('?', $request); foreach ($entrypoints as $id => $fun) { $id = '@^' . preg_quote($id, '@') . '$@u'; @@ -145,13 +146,14 @@ foreach ($entrypoints as $id => $fun) { function die_404() { global $config; if (!$config['page_404']) { - header("HTTP/1.1 404 Not Exists"); - header("Status: 404 Not Exists"); - echo "<h1>404 Not Exists</h1><p>Page doesn't exist<hr><address>vichan</address>"; + header("HTTP/1.1 404 Not Found"); + header("Status: 404 Not Found"); + echo "<h1>404 Not Found</h1><p>Page doesn't exist<hr><address>vichan</address>"; } else { header("Location: ".$config['page_404']); } + die(); } |
