includes/dbal.php
changeset 276 acfdccf7a2bf
parent 272 e0ec986c0af3
child 279 8acd77a6c19d
child 286 b2f985e4cef3
--- a/includes/dbal.php	Wed Nov 21 15:18:15 2007 -0500
+++ b/includes/dbal.php	Wed Nov 21 20:14:14 2007 -0500
@@ -145,7 +145,7 @@
       // scriptPath isn't set yet - we need to autodetect it to avoid infinite redirects
       if ( !defined('scriptPath') )
       {
-        if ( isset($_SERVER['PATH_INFO']) )
+        if ( isset($_SERVER['PATH_INFO']) && !preg_match('/index\.php$/', $_SERVER['PATH_INFO']) )
         {
           $_SERVER['REQUEST_URI'] = preg_replace(';' . preg_quote($_SERVER['PATH_INFO']) . '$;', '', $_SERVER['REQUEST_URI']);
         }