Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
Showing with 3 additions and 1 deletion.
  1. +3 −1 dev/install/install.php5
View
4 dev/install/install.php5
@@ -984,6 +984,7 @@ class Installer extends InstallRequirements {
?>
<html>
<head>
+ <meta charset="utf-8" />
<title>Installing SilverStripe...</title>
<link rel="stylesheet" type="text/css" href="<?php echo FRAMEWORK_NAME; ?>/dev/install/css/install.css" />
<script src="<?php echo FRAMEWORK_NAME; ?>/thirdparty/jquery/jquery.js"></script>
@@ -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";
Please sign in to comment.
Something went wrong with that request. Please try again.