diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-05-19 02:36:11 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-05-19 02:36:11 +1000 |
| commit | 99ed879e17e56f089809a6ae695d909fa57da589 (patch) | |
| tree | 1927351f86eee61c3d9f235369dd027a8187c1ee | |
| parent | 4078476723e8907bdeba481fc0d28437e02767cc (diff) | |
Bug forcing HTTPS referers when using ISAPI with IIS
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index a2ea8168..dd91fe62 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -29,7 +29,7 @@ if(!isset($config['url_match'])) $config['url_match'] = '/^' . (preg_match($config['url_regex'], $config['root']) ? '' : - (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']?'https':'http') . + (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http') . ':\/\/'.$_SERVER['HTTP_HOST']) . preg_quote($config['root'], '/') . '(' . |
