From 0919644d360888918ae728dd19728d1da332856f Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Mon, 25 Jan 2016 06:18:04 -0600 Subject: Fixes the GUI URL in the last step of the setup wizard. The SERVER_NAME variable is not available anymore, use HTTP_HOST instead. --- src/usr/local/www/wizard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usr/local') diff --git a/src/usr/local/www/wizard.php b/src/usr/local/www/wizard.php index cfe95f9..b3eb88a 100644 --- a/src/usr/local/www/wizard.php +++ b/src/usr/local/www/wizard.php @@ -380,7 +380,7 @@ function fixup_string($string) { } } - $http_host = $_SERVER['SERVER_NAME']; + $http_host = $_SERVER['HTTP_HOST']; $urlhost = $http_host; // If finishing the setup wizard, check if accessing on a LAN or WAN address that changed if ($title == "Reload in progress") { -- cgit v1.1