Skip to content

Commit

Permalink
OUWiki: Incorrect magic number php log entry #10047
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-platts authored and sammarshallou committed Jun 6, 2014
1 parent 75a9f4c commit 740f6fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion feed-history.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 2 additions & 1 deletion feed-wikihistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 740f6fe

Please sign in to comment.