Révision | 87416fbe41cd55cb0b804b277faaee0e87917664 (tree) |
---|---|
l'heure | 2017-09-04 02:26:28 |
Auteur | umorigu <umorigu@gmai...> |
Commiter | umorigu |
BugTrack/341 Support Port 443 of non-https sites
@@ -881,8 +881,7 @@ function _pkwk_base_uri_type_stack($peek, $push, $uri_type) | ||
881 | 881 | function guess_script_absolute_uri() |
882 | 882 | { |
883 | 883 | $port = SERVER_PORT; |
884 | - $is_ssl = (SERVER_PORT == 443) || | |
885 | - (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') || | |
884 | + $is_ssl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') || | |
886 | 885 | (isset($_SERVER['REQUEST_SCHEME']) && $_SERVER['REQUEST_SCHEME'] === 'https'); |
887 | 886 | if ($is_ssl) { |
888 | 887 | $host = 'https://' . SERVER_NAME . |