1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-18 17:14:04 +01:00
This commit is contained in:
Savetheinternet 2011-12-06 17:24:30 +11:00
parent 2623b261c8
commit fbc8ba4d73

View File

@ -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'];