From bb4f01a334c5e8e50b25e21a9b5d2593f9a0b9e1 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 8 Jan 2010 20:49:45 +0000 Subject: Fixes #1172: URL now checked for trailing slash upon installation. git-svn-id: http://code.elgg.org/elgg/trunk@3787 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/systemsettings/install.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actions/systemsettings') 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; -- cgit v1.2.3