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
This commit is contained in:
sminnee 2010-10-13 04:22:40 +00:00
parent 0d5b969a49
commit fbc6cd5db7

View File

@ -807,6 +807,7 @@ class Installer extends InstallRequirements {
}
$phpVersion = urlencode(phpversion());
$encWebserver = urlencode($webserver);
if($config['db']['type'] == 'MySQLDatabase') {
$conn = @mysql_connect($config['db']['server'], null, null);
@ -815,7 +816,7 @@ class Installer extends InstallRequirements {
$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'];