Index: bootstrap.inc
===================================================================
--- bootstrap.inc	(revision 10291)
+++ bootstrap.inc	(working copy)
@@ -262,7 +262,8 @@

     // $_SERVER['SCRIPT_NAME'] can, in contrast to $_SERVER['PHP_SELF'], not
     // be modified by a visitor.
-    if ($dir = trim(dirname($_SERVER['SCRIPT_NAME']), '\,/')) {
+    $dir = trim(dirname($_SERVER['SCRIPT_NAME']), '\,/');
+    if ($dir && $dir != '.') {
       $base_path = "/$dir";
       $base_url .= $base_path;
       $base_path .= '/';
