--- a/punbb/rewrite.php Sun Apr 06 00:35:38 2008 -0400
+++ b/punbb/rewrite.php Sun Jun 15 01:42:31 2008 -0400
@@ -89,12 +89,12 @@
// If we don't know what to rewrite to, we show a bad request messsage
if (empty($rewritten_url))
{
- header('HTTP/1.x 404 Not Found');
+ header('HTTP/1.1 404 Not Found');
// Allow an extension to override the "Bad request" message with a custom 404 page
($hook = get_hook('re_page_not_found')) ? eval($hook) : null;
- exit('Bad request');
+ die_friendly('Page not found', '<p>You have requested a forum URL that is invalid. Please press your browser\'s Back button to return to the page from whence you came, or return to the <a href="' . makeUrlNS('Special', 'Forum') . '">forum index</a>.</p>');
}
// We change $_SERVER['PHP_SELF'] so that it reflects the file we're actually loading