diff options
Diffstat (limited to 'redirect.php')
-rw-r--r-- | redirect.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/redirect.php b/redirect.php new file mode 100644 index 00000000..c0e8746e --- /dev/null +++ b/redirect.php @@ -0,0 +1,23 @@ +<?php +unset( $DP ); +unset( $IP ); +$wgCommandLineMode = false; +define( 'MEDIAWIKI', true ); +if ( isset( $_REQUEST['GLOBALS'] ) ) { + echo '<a href="http://www.hardened-php.net/index.76.html">$GLOBALS overwrite vulnerability</a>'; + die( -1 ); +} + +require_once( './includes/Defines.php' ); +require_once( './LocalSettings.php' ); +global $wgArticlePath; + +require_once( 'includes/WebRequest.php' ); +$wgRequest = new WebRequest(); + +$page = $wgRequest->getVal( 'wpDropdown' ); + +$url = str_replace( "$1", urlencode( $page ), $wgArticlePath ); + +header( "Location: {$url}" ); +?> |