Browse Source

Bug forcing HTTPS referers when using ISAPI with IIS

pull/40/head
Savetheinternet 13 years ago
parent
commit
99ed879e17
  1. 2
      inc/functions.php

2
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'], '/') .
'(' .

Loading…
Cancel
Save