From cee9dbc41e78f88748aa3935e3914fc7f45f1016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=82=AF=E6=80=9D?= Date: Fri, 11 Jul 2014 09:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E7=94=A8parse=5Furl=E4=BC=9A?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=E7=AB=AF=E5=8F=A3=EF=BC=8C=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=98=AF=E9=9D=9E80=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E4=BC=9A=E4=BA=A7=E7=94=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.php | 1 + 1 file changed, 1 insertion(+) 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; }