From 1d50541dd239cb4c732db151942ba3186aa21577 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 24 Sep 2015 21:24:05 +0200 Subject: [PATCH] =?utf8?q?Fixup=20HTTPRequest.class.php=20=E2=80=A6=20agai?= =?utf8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes up commit 63f9ff4e0efc619ab8851463bbafe8f44eb72a89 and d3ee6dcbc3f4cb62026e9c087561ae878572e096. --- wcfsetup/install/files/lib/util/HTTPRequest.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/HTTPRequest.class.php b/wcfsetup/install/files/lib/util/HTTPRequest.class.php index 5853c0b7f3..ff74522289 100644 --- a/wcfsetup/install/files/lib/util/HTTPRequest.class.php +++ b/wcfsetup/install/files/lib/util/HTTPRequest.class.php @@ -226,9 +226,11 @@ final class HTTPRequest { if (PROXY_SERVER_HTTP && !$this->originUseSSL) { $this->path = $url; + $this->query = ''; } else { $this->path = isset($parsedUrl['path']) ? $parsedUrl['path'] : '/'; + $this->query = isset($parsedUrl['query']) ? $parsedUrl['query'] : ''; } if (PROXY_SERVER_HTTP) { @@ -238,7 +240,6 @@ final class HTTPRequest { $this->useSSL = $parsedUrl['scheme'] === 'https'; $this->host = $parsedUrl['host']; $this->port = isset($parsedUrl['port']) ? $parsedUrl['port'] : ($this->useSSL ? 443 : 80); - $this->query = isset($parsedUrl['query']) ? $parsedUrl['query'] : ''; // update the 'Host:' header if URL has changed if ($this->url != $url) { -- 2.20.1