Changeset 3403 for trunk/include/functions_url.inc.php
- Timestamp:
- Jun 9, 2009, 5:47:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_url.inc.php
r3282 r3403 59 59 if ($with_scheme) 60 60 { 61 if (empty($_SERVER['HTTPS'])) 61 if (isset($_SERVER['HTTPS']) && 62 ((strtolower($_SERVER['HTTPS']) == 'on') or ($_SERVER['HTTPS'] == 1))) 63 { 64 $url .= 'https://'; 65 } 66 else 62 67 { 63 68 $url .= 'http://'; 64 }65 else66 {67 $url .= 'https://';68 69 } 69 70 $url .= $_SERVER['HTTP_HOST'];
Note: See TracChangeset
for help on using the changeset viewer.