Skip to content
This repository
Browse code

BUGFIX: Installer failed complaining about rewrite server-capability:…

… XHR response was 3 chars long and therefore !== "OK"

MINOR: Added charset <meta> declaration to prevent errors cluttering up browser-based debugger console output
  • Loading branch information...
commit 3ca24a89e96ab27ab24d19648941b7d4187566f9 1 parent 4583e83
Russell Michell authored August 15, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  dev/install/install.php5
4  dev/install/install.php5
@@ -984,6 +984,7 @@ class Installer extends InstallRequirements {
984 984
 ?>
985 985
 <html>
986 986
 	<head>
  987
+		<meta charset="utf-8" />
987 988
 		<title>Installing SilverStripe...</title>
988 989
 		<link rel="stylesheet" type="text/css" href="<?php echo FRAMEWORK_NAME; ?>/dev/install/css/install.css" />
989 990
 		<script src="<?php echo FRAMEWORK_NAME; ?>/thirdparty/jquery/jquery.js"></script>
@@ -1352,7 +1353,8 @@ TEXT;
1352 1353
 			method: 'get',
1353 1354
 			url: 'InstallerTest/testrewrite',
1354 1355
 			complete: function(response) {
1355  
-				if(response.responseText == 'OK') {
  1356
+				var r = response.responseText.replace(/[^A-Z]?/g,"");
  1357
+				if(r === "OK") {
1356 1358
 					$('#ModRewriteResult').html("Friendly URLs set up successfully; I am now redirecting you to your SilverStripe site...")
1357 1359
 					setTimeout(function() {
1358 1360
 						window.location = "$destinationURL";

0 notes on commit 3ca24a8

Please sign in to comment.
Something went wrong with that request. Please try again.