# HG changeset patch # User Dan # Date 1195884270 18000 # Node ID 9a1a32bc2050200f8dc4ecbb8a730ef3c77ca528 # Parent f6d144cba8a9530eb9be8af2e3ca25c8751e3337 Hopefully once again fix scriptPath detection in dbal.php diff -r f6d144cba8a9 -r 9a1a32bc2050 includes/dbal.php --- a/includes/dbal.php Sat Nov 24 01:02:55 2007 -0500 +++ b/includes/dbal.php Sat Nov 24 01:04:30 2007 -0500 @@ -148,6 +148,11 @@ { $_SERVER['REQUEST_URI'] = preg_replace(';' . preg_quote($_SERVER['PATH_INFO']) . '$;', '', $_SERVER['REQUEST_URI']); } + if ( !preg_match('/\.php$/', $_SERVER['REQUEST_URI']) ) + { + // user requested http://foo/enano as opposed to http://foo/enano/index.php + $_SERVER['REQUEST_URI'] .= '/index.php'; + } $sp = dirname($_SERVER['REQUEST_URI']); if($sp == '/' || $sp == '\\') $sp = ''; define('scriptPath', $sp);