diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-06 17:21:26 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-06 17:21:26 +1100 |
| commit | 1a4eb1dea67c3c093fb6bb338e5c5dfcdf3957ea (patch) | |
| tree | 9482d9a642aa3b342d980246344709198d27ac7d | |
| parent | b488828b5680958466d30c6ebb537d4bf83ef256 (diff) | |
bugfix: posting from another page would return "invalid referrer" errors
| -rw-r--r-- | inc/functions.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index dcd68385..98bc3505 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -47,7 +47,10 @@ preg_quote($config['root'], '/') . '(' . str_replace('%s', '\w+', preg_quote($config['board_path'], '/')) . - '(' . preg_quote($config['file_index'], '/') . ')?' . + '(' . + preg_quote($config['file_index'], '/') . '|' . + str_replace('%d', '\d+', preg_quote($config['file_page'])) . + ')?' . '|' . str_replace('%s', '\w+', preg_quote($config['board_path'], '/')) . preg_quote($config['dir']['res'], '/') . |
