diff -r 956263992d48 -r acfdccf7a2bf includes/dbal.php --- 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']); }