Permalink
Browse files

BUGFIX Webserver should be encoded properly when sending server stats…

… to ss2stat during SS installation (from r100554)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112186 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
sminnee
sminnee committed Oct 13, 2010
1 parent 0d5b969 commit fbc6cd5db7e670bc42b65d2a8f5b86ee957d465f
Showing with 2 additions and 1 deletion.
  1. +2 −1 install.php
View
@@ -807,6 +807,7 @@ function install($config) {
}
$phpVersion = urlencode(phpversion());
+ $encWebserver = urlencode($webserver);
if($config['db']['type'] == 'MySQLDatabase') {
$conn = @mysql_connect($config['db']['server'], null, null);
@@ -815,7 +816,7 @@ function install($config) {
$databaseVersion = $config['db']['type'];
}
- $url = "http://ss2stat.silverstripe.com/Installation/add?SilverStripe=$silverstripe_version&PHP=$phpVersion&Database=$databaseVersion&WebServer=$webserver";
+ $url = "http://ss2stat.silverstripe.com/Installation/add?SilverStripe=$silverstripe_version&PHP=$phpVersion&Database=$databaseVersion&WebServer=$encWebserver";
if(isset($_SESSION['StatsID']) && $_SESSION['StatsID']) {
$url .= '&ID=' . $_SESSION['StatsID'];

0 comments on commit fbc6cd5

Please sign in to comment.