* Fix potential PHP notice in Special:Blockme when $wgBlockOpenProxies is true
authorRob Church <robchurch@users.mediawiki.org>
Fri, 30 Jun 2006 08:34:21 +0000 (08:34 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 30 Jun 2006 08:34:21 +0000 (08:34 +0000)
RELEASE-NOTES
includes/SpecialBlockme.php

index bfd11a8..cd47634 100644 (file)
@@ -605,6 +605,7 @@ Some default configuration options have changed:
 * Added Javanese localization (jv)
 * (bug 6491) Apply bad image list in category galleries
 * (bug 6488) Show relevant log fragment in Special:Movepage
+* Fix potential PHP notice in Special:Blockme when $wgBlockOpenProxies is true
 
 == Compatibility ==
 
index b452b14..5bfce4e 100644 (file)
@@ -8,14 +8,13 @@
 /**
  *
  */
-function wfSpecialBlockme()
-{
-       global $wgBlockOpenProxies, $wgOut, $wgProxyKey;
+function wfSpecialBlockme() {
+       global $wgRequest, $wgBlockOpenProxies, $wgOut, $wgProxyKey;
 
        $ip = wfGetIP();
-
-       if ( !$wgBlockOpenProxies || $_REQUEST['ip'] != md5( $ip . $wgProxyKey ) ) {
-               $wgOut->addWikiText( wfMsg( "disabled" ) );
+       
+       if( !$wgBlockOpenProxies || $wgRequest->getText( 'ip' ) != md5( $ip . $wgProxyKey ) ) {
+               $wgOut->addWikiText( wfMsg( 'disabled' ) );
                return;
        }