BUGFIX Webserver should be encoded properly when sending server stats to ss2stat during SS installation

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@100554 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sharvey 2010-03-07 08:35:18 +00:00 committed by Sam Minnee
parent 549867149c
commit 3379a20bfc

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'];