diff --git a/install.php b/install.php index 2f2221d5..def5d0b8 100644 --- a/install.php +++ b/install.php @@ -67,6 +67,7 @@ if (!empty($_GET) || !empty($_POST)) { } $parts = parse_url($_SERVER['HTTP_REFERER']); + if($parts['port'] != 80) $parts['host'] = "{$parts['host']}:{$parts['port']}"; if (empty($parts['host']) || $_SERVER['HTTP_HOST'] != $parts['host']) { exit; }