mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 04:13:49 +01:00
Better SSL support.
This commit is contained in:
parent
7089d0e1ec
commit
f8de816234
@ -40,8 +40,7 @@
|
||||
if(!isset($config['referer_match']))
|
||||
$config['referer_match'] = '/^' .
|
||||
(preg_match($config['url_regex'], $config['root']) ? '' :
|
||||
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http') .
|
||||
':\/\/'.$_SERVER['HTTP_HOST']) .
|
||||
'https?:\/\/'.$_SERVER['HTTP_HOST']) .
|
||||
preg_quote($config['root'], '/') .
|
||||
'(' .
|
||||
str_replace('%s', '\w+', preg_quote($config['board_path'], '/')) .
|
||||
|
Loading…
x
Reference in New Issue
Block a user