diff options
| author | 2018-03-04 01:02:02 +0100 | |
|---|---|---|
| committer | 2018-03-04 01:02:02 +0100 | |
| commit | 71918dbc5a240dfa391491b27cdb482d55b8794a (patch) | |
| tree | 8ef6f68f35134d93cba6495728983ae37c69e127 /lib | |
| parent | 9dbed072b32f70db98c24e164ca6ee5487ceb97e (diff) | |
New Docker (#1813)
* Draft of new Docker
Based on Alpine Linux. Size ~78MB.
https://github.com/FreshRSS/docker-freshrss/issues/4
https://github.com/FreshRSS/FreshRSS/issues/520
https://github.com/FreshRSS/docker-freshrss
https://github.com/FreshRSS/docker-freshrss-production
* Docker readme
* +x execution rights prepare
* Docker readme links to hub.docker.com
https://hub.docker.com/r/freshrss/freshrss/
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Request.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index f80b707d6..a43509ded 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -106,7 +106,8 @@ class Minz_Request { $https = self::isHttps(); if (!empty($_SERVER['HTTP_HOST'])) { - $host = $_SERVER['HTTP_HOST']; + //Might contain a port number, and mind IPv6 addresses + $host = parse_url('http://' . $_SERVER['HTTP_HOST'], PHP_URL_HOST); } elseif (!empty($_SERVER['SERVER_NAME'])) { $host = $_SERVER['SERVER_NAME']; } else { |
