diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-06 17:24:30 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-06 17:24:30 +1100 |
| commit | 68cfe4667728b06d71371d39d299629270d7408b (patch) | |
| tree | 46cd6b83e523a50b324ea69e86d9a8c0fa3ee08e | |
| parent | 1a4eb1dea67c3c093fb6bb338e5c5dfcdf3957ea (diff) | |
...
| -rw-r--r-- | inc/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php index 98bc3505..3a5e0ecf 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -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']; |
