From 7e5a4414f4a2aa93124b1bcf4b3c60dd32068eb1 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 20 Apr 2005 10:41:52 +0000 Subject: [PATCH] * (bug 1933) Fix PATH_INFO usage under IIS with PHP ISAPI module --- includes/WebRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1