(bug 13690) Fix PHP notice on accessing some URLs. parse_url() in some versions...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 11 Apr 2008 19:03:38 +0000 (19:03 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 11 Apr 2008 19:03:38 +0000 (19:03 +0000)
RELEASE-NOTES
includes/WebRequest.php

index f244425..b2d022c 100644 (file)
@@ -169,6 +169,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13433) Fix action=render on Image: pages
 * (bug 13678) Fix CSS validation for Monobook
 * (bug 13684) Links in Special:ListGroupRights should be in content language
+* (bug 13690) Fix PHP notice on accessing some URLs
 
 === API changes in 1.13 ===
 
index e2075c9..a65e722 100644 (file)
@@ -79,7 +79,7 @@ class WebRequest {
                                }
                                $a = parse_url( $url );
                                if( $a ) {
-                                       $path = $a['path'];
+                                       $path = isset( $a['path'] ) ? $a['path'] : '';
                                        
                                        global $wgScript;
                                        if( $path == $wgScript ) {