aboutsummaryrefslogtreecommitdiffstats
path: root/redirect.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@users.mediawiki.org>2006-01-14 02:49:43 +0000
committerBrion Vibber <brion@users.mediawiki.org>2006-01-14 02:49:43 +0000
commit266d41f165fe23e85f70f90891f951b0b0bcda7a (patch)
tree1a83e5214ff0a8ca3a6b7c8b2c75f32ab459d4d2 /redirect.php
parent65dee693e46ee7060aef12b282f260607dee69bf (diff)
downloadmediawikicore-266d41f165fe23e85f70f90891f951b0b0bcda7a.tar.gz
mediawikicore-266d41f165fe23e85f70f90891f951b0b0bcda7a.zip
* Added wfDie() wrapper, and some manual die(-1), to force the return code
to the shell to return nonzero when we crap out with an error.
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12660
Diffstat (limited to 'redirect.php')
-rw-r--r--redirect.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/redirect.php b/redirect.php
index 7c7aa3b16557..c0e8746ef6f5 100644
--- a/redirect.php
+++ b/redirect.php
@@ -4,7 +4,8 @@ unset( $IP );
$wgCommandLineMode = false;
define( 'MEDIAWIKI', true );
if ( isset( $_REQUEST['GLOBALS'] ) ) {
- die( '<a href="http://www.hardened-php.net/index.76.html">$GLOBALS overwrite vulnerability</a>');
+ echo '<a href="http://www.hardened-php.net/index.76.html">$GLOBALS overwrite vulnerability</a>';
+ die( -1 );
}
require_once( './includes/Defines.php' );