Commit 0450bdeb authored by mikeytown2's avatar mikeytown2

Issue #2450725 by mikeytown2: Fix issue with port number being added when not needed.

parent d3b9d6fb
......@@ -371,7 +371,8 @@ function _httprl_build_drupal_root($level = 0, $hostname_mode = 0) {
}
elseif ( isset($_SERVER['SERVER_PORT'])
&& is_numeric($_SERVER['SERVER_PORT'])
&& ($_SERVER['SERVER_PORT'] != 80 || $_SERVER['SERVER_PORT'] != 443)
&& $_SERVER['SERVER_PORT'] != 80
&& $_SERVER['SERVER_PORT'] != 443
) {
$port = ':' . $_SERVER['SERVER_PORT'];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment