Index: trunk/phase3/HISTORY |
— | — | @@ -875,6 +875,7 @@ |
876 | 876 | * (bug 19968) Fixed "Project talk" namespace name for Maltese (mt) |
877 | 877 | * (bug 21168) Added áâãàéêçíóôõúü to Portuguese (pt) linktrail |
878 | 878 | * (bug 21596) Change interwiki link for Kurdish (ku) |
| 879 | +* (bug 23767) PHP warning/error when REQUEST_URI returns blank (IIS issue). |
879 | 880 | |
880 | 881 | == MediaWiki 1.15 == |
881 | 882 | |
Index: trunk/phase3/includes/WebRequest.php |
— | — | @@ -460,7 +460,7 @@ |
461 | 461 | * @return String |
462 | 462 | */ |
463 | 463 | public function getRequestURL() { |
464 | | - if( isset( $_SERVER['REQUEST_URI'] ) ) { |
| 464 | + if( isset( $_SERVER['REQUEST_URI']) && strlen($_SERVER['REQUEST_URI']) ) { |
465 | 465 | $base = $_SERVER['REQUEST_URI']; |
466 | 466 | } elseif( isset( $_SERVER['SCRIPT_NAME'] ) ) { |
467 | 467 | // Probably IIS; doesn't set REQUEST_URI |