aboutsummaryrefslogtreecommitdiff
path: root/actions/systemsettings
diff options
context:
space:
mode:
Diffstat (limited to 'actions/systemsettings')
-rw-r--r--actions/systemsettings/install.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/systemsettings/install.php b/actions/systemsettings/install.php
index 41a2a8b22..c4f563beb 100644
--- a/actions/systemsettings/install.php
+++ b/actions/systemsettings/install.php
@@ -22,6 +22,7 @@ if (get_input('settings') == 'go') {
// Sanitise
$path = sanitise_filepath(get_input('path'));
$dataroot = sanitise_filepath(get_input('dataroot'));
+ $url = sanitise_filepath(get_input('wwwroot'));
// Blank?
if ($dataroot == "/") {
@@ -40,7 +41,7 @@ if (get_input('settings') == 'go') {
$site = new ElggSite();
$site->name = get_input('sitename');
- $site->url = get_input('wwwroot');
+ $site->url = $url;
$site->description = get_input('sitedescription');
$site->email = get_input('siteemail');
$site->access_id = ACCESS_PUBLIC;