Changeset 23187
- Timestamp:
- Jun 13, 2013, 8:41:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_url.inc.php
r19703 r23187 52 52 if ($with_scheme) 53 53 { 54 $is_https = false; 54 55 if (isset($_SERVER['HTTPS']) && 55 ((strtolower($_SERVER['HTTPS']) == 'on') or ($_SERVER['HTTPS'] == 1))) 56 { 56 ((strtolower($_SERVER['HTTPS']) == 'on') or ($_SERVER['HTTPS'] == 1))) 57 { 58 $is_https = true; 57 59 $url .= 'https://'; 58 60 } … … 62 64 } 63 65 $url .= $_SERVER['HTTP_HOST']; 64 if ($_SERVER['SERVER_PORT'] != 80) 66 if ( (!$is_https && $_SERVER['SERVER_PORT'] != 80) 67 ||($is_https && $_SERVER['SERVER_PORT'] != 443)) 65 68 { 66 69 $url_port = ':'.$_SERVER['SERVER_PORT'];
Note: See TracChangeset
for help on using the changeset viewer.