mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
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:
parent
549867149c
commit
3379a20bfc
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user