Index: install.php
===================================================================
RCS file: /cvs/drupal/drupal/install.php,v
retrieving revision 1.95
diff -u -r1.95 install.php
--- install.php	20 Nov 2007 13:24:53 -0000	1.95
+++ install.php	21 Nov 2007 06:17:23 -0000
@@ -683,6 +683,8 @@
       // Add JavaScript validation.
       _user_password_dynamic_validation();
       drupal_add_js(drupal_get_path('module', 'system') .'/system.js', 'module');
+      drupal_add_base_path();
+      
       // We add these strings as settings because JavaScript translation does not
       // work on install time.
       drupal_add_js(array('copyFieldValue' => array('edit-site-mail' => array('edit-account-mail')), 'cleanURL' => array('success' => st('Your server has been successfully tested to support this feature.'), 'failure' => st('Your system configuration does not currently support this feature. The <a href="http://drupal.org/node/15365">handbook page on Clean URLs</a> has additional troubleshooting information.'), 'testing' => st('Testing clean URLs...'))), 'setting');
Index: modules/system/system.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.js,v
retrieving revision 1.13
diff -u -r1.13 system.js
--- modules/system/system.js	27 Oct 2007 11:32:05 -0000	1.13
+++ modules/system/system.js	21 Nov 2007 06:17:26 -0000
@@ -42,7 +42,9 @@
  * are currently enabled.
  */
 Drupal.cleanURLsInstallCheck = function() {
-  var url = location.protocol +"//"+ location.host + location.pathname.replace(/\/[^\/]*$/, "/") +"admin/settings/clean-urls/check";
+  var url = location.protocol +"//"+ location.host + Drupal.settings.base_path +"admin/settings/clean-urls/check";
   $("#clean-url .description").append('<span><div id="testing">'+ Drupal.settings.cleanURL.testing +"</div></span>");
   $("#clean-url.install").css("display", "block");
   $.ajax({
Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.717
diff -u -r1.717 common.inc
--- includes/common.inc	20 Nov 2007 20:13:03 -0000	1.717
+++ includes/common.inc	21 Nov 2007 06:17:26 -0000
@@ -2051,6 +2051,21 @@
   drupal_add_js($settings, 'setting');
 }
 
+/*
+ * Provide base_path for javascript.  Needed for many Ajax calls
+ */
+function drupal_add_base_path() {
+  static $base_path_added = FALSE;
+  if (!$base_path_added) {
+    $settings = array(
+      'base_path' => base_path(),
+    );
+    drupal_add_js($settings, 'setting');
+    $base_path_added = TRUE;
+  }
+}
+
+
 /**
  * Aggregate JS files, putting them in the files directory.
  *
