From 740f6fea9d5f7db23c5500a3306ed5075b02e772 Mon Sep 17 00:00:00 2001 From: Jason Platts Date: Wed, 16 Apr 2014 09:34:55 +0100 Subject: [PATCH] OUWiki: Incorrect magic number php log entry #10047 --- feed-history.php | 3 ++- feed-wikihistory.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/feed-history.php b/feed-history.php index d649fe7..ee2787c 100644 --- a/feed-history.php +++ b/feed-history.php @@ -34,7 +34,8 @@ $magic = required_param('magic', PARAM_RAW); if ($magic != $subwiki->magic) { - print_error('Incorrect magic number'); + header('HTTP/1.0 404 not found'); + die('Incorrect magic number'); } $rss = optional_param('format', '', PARAM_RAW) === 'rss'; diff --git a/feed-wikihistory.php b/feed-wikihistory.php index 281022b..3d9294e 100644 --- a/feed-wikihistory.php +++ b/feed-wikihistory.php @@ -32,7 +32,8 @@ $magic = required_param('magic', PARAM_RAW); if ($magic != $subwiki->magic) { - print_error('Incorrect magic number'); + header('HTTP/1.0 404 not found'); + die('Incorrect magic number'); } $newpages = optional_param('type', '', PARAM_ALPHA) == 'pages';