--- C:/Users/brsmith/Documents/bootstrap.inc	Mon Feb 28 21:27:04 2011
+++ C:/Users/brsmith/Documents/bootstrap.inc.patched	Mon Feb 28 21:25:14 2011
@@ -2511,7 +2511,7 @@
     // $path and returned in later calls.
     $path = $_GET['q'];
   }
-  elseif (isset($_SERVER['REQUEST_URI'])) {
+  elseif (isset($_SERVER['REQUEST_URI']) && variable_get('clean_url', '0')) {
     // This is a request using a clean URL. Extract the path from REQUEST_URI.
     $request_path = strtok($_SERVER['REQUEST_URI'], '?');
     $base_path_len = strlen(rtrim(dirname($_SERVER['SCRIPT_NAME']), '\/'));
