Skip to content

Commit

Permalink
BUGFIX: Installer failed complaining about rewrite server-capability:…
Browse files Browse the repository at this point in the history
… 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
Russell Michell committed Aug 15, 2012
1 parent 4583e83 commit 3ca24a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/install/install.php5
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 3ca24a8

Please sign in to comment.