mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-18 17:14:04 +01:00
...
This commit is contained in:
parent
2623b261c8
commit
fbc8ba4d73
@ -43,7 +43,7 @@
|
||||
if(!isset($config['referer_match']))
|
||||
$config['referer_match'] = '/^' .
|
||||
(preg_match($config['url_regex'], $config['root']) ? '' :
|
||||
'https?:\/\/'.$_SERVER['HTTP_HOST']) .
|
||||
'https?:\/\/' . $_SERVER['HTTP_HOST']) .
|
||||
preg_quote($config['root'], '/') .
|
||||
'(' .
|
||||
str_replace('%s', '\w+', preg_quote($config['board_path'], '/')) .
|
||||
@ -57,7 +57,7 @@
|
||||
str_replace('%d', '\d+', preg_quote($config['file_page'], '/')) .
|
||||
'|' .
|
||||
preg_quote($config['file_mod'], '/') . '\?\/.+' .
|
||||
')(#.+)?$/i';
|
||||
')([#?].+)?$/i';
|
||||
|
||||
if(!isset($config['cookies']['path']))
|
||||
$config['cookies']['path'] = &$config['root'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user