From 3ca24a89e96ab27ab24d19648941b7d4187566f9 Mon Sep 17 00:00:00 2001 From: Russell Michell Date: Wed, 15 Aug 2012 13:42:54 +1200 Subject: [PATCH] BUGFIX: Installer failed complaining about rewrite server-capability: XHR response was 3 chars long and therefore !== "OK" MINOR: Added charset declaration to prevent errors cluttering up browser-based debugger console output --- dev/install/install.php5 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/install/install.php5 b/dev/install/install.php5 index 7ce3571ac..0b6d9b151 100644 --- a/dev/install/install.php5 +++ b/dev/install/install.php5 @@ -984,6 +984,7 @@ class Installer extends InstallRequirements { ?> + Installing SilverStripe... @@ -1352,7 +1353,8 @@ TEXT; method: 'get', url: 'InstallerTest/testrewrite', complete: function(response) { - if(response.responseText == 'OK') { + var r = response.responseText.replace(/[^A-Z]?/g,""); + if(r === "OK") { $('#ModRewriteResult').html("Friendly URLs set up successfully; I am now redirecting you to your SilverStripe site...") setTimeout(function() { window.location = "$destinationURL";