From: Brion Vibber Date: Wed, 20 Apr 2005 10:41:52 +0000 (+0000) Subject: * (bug 1933) Fix PATH_INFO usage under IIS with PHP ISAPI module X-Git-Tag: 1.5.0alpha1~229 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=7e5a4414f4a2aa93124b1bcf4b3c60dd32068eb1;p=lhc%2Fweb%2Fwiklou.git * (bug 1933) Fix PATH_INFO usage under IIS with PHP ISAPI module --- diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 556de61296..865c1b72a4 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -38,7 +38,7 @@ class WebRequest { function WebRequest() { $this->checkMagicQuotes(); global $wgUsePathInfo; - if( isset( $_SERVER['PATH_INFO'] ) && $wgUsePathInfo ) { + if( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != '') && $wgUsePathInfo ) { # Stuff it! $_GET['title'] = $_REQUEST['title'] = substr( $_SERVER['PATH_INFO'], 1 );