diff options
| author | Marcin Łabanowski <marcin@6irc.net> | 2013-01-09 08:33:40 +0100 |
|---|---|---|
| committer | Marcin Łabanowski <marcin@6irc.net> | 2013-01-09 08:33:40 +0100 |
| commit | f6e9dbed1333f6761de0e748a6a41b6b365158dc (patch) | |
| tree | 577d008a32ac5538c4cd48ebc7ceec4e9ae76077 /mod.php | |
| parent | e448bcb69c95ba9a9a13d32787d3e85c8a993e9a (diff) | |
Facilitate creation and usage of boards with "." and "+" characters in name.
This commit is mostly work in progress, will be rewritten.
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -59,14 +59,14 @@ $pages = array( // CSRF-protected moderator actions '/ban' => 'secure_POST ban', // new ban - '/(\w+)/ban(&delete)?/(\d+)' => 'secure_POST ban_post', // ban poster - '/(\w+)/move/(\d+)' => 'secure_POST move', // move thread - '/(\w+)/delete/(\d+)' => 'secure delete', // delete post - '/(\w+)/deletefile/(\d+)' => 'secure deletefile', // delete file from post - '/(\w+)/deletebyip/(\d+)(/global)?' => 'secure deletebyip', // delete all posts by IP address - '/(\w+)/(un)?lock/(\d+)' => 'secure lock', // lock thread - '/(\w+)/(un)?sticky/(\d+)' => 'secure sticky', // sticky thread - '/(\w+)/bump(un)?lock/(\d+)' => 'secure bumplock', // "bumplock" thread + '/([\w+.]+)/ban(&delete)?/(\d+)' => 'secure_POST ban_post', // ban poster + '/([\w+.]+)/move/(\d+)' => 'secure_POST move', // move thread + '/([\w+.]+)/delete/(\d+)' => 'secure delete', // delete post + '/([\w+.]+)/deletefile/(\d+)' => 'secure deletefile', // delete file from post + '/([\w+.]+)/deletebyip/(\d+)(/global)?' => 'secure deletebyip', // delete all posts by IP address + '/([\w+.]+)/(un)?lock/(\d+)' => 'secure lock', // lock thread + '/([\w+.]+)/(un)?sticky/(\d+)' => 'secure sticky', // sticky thread + '/([\w+.]+)/bump(un)?lock/(\d+)' => 'secure bumplock', // "bumplock" thread '/themes' => 'themes_list', // manage themes '/themes/(\w+)' => 'theme_configure', // configure/reconfigure theme @@ -79,10 +79,10 @@ $pages = array( '/debug/antispam' => 'debug_antispam', // This should always be at the end: - '/(\w+)/' => 'view_board', - '/(\w+)/' . preg_quote($config['file_index'], '!') => 'view_board', - '/(\w+)/' . str_replace('%d', '(\d+)', preg_quote($config['file_page'], '!')) => 'view_board', - '/(\w+)/' . preg_quote($config['dir']['res'], '!') . + '/([\w+.]+)/' => 'view_board', + '/([\w+.]+)/' . preg_quote($config['file_index'], '!') => 'view_board', + '/([\w+.]+)/' . str_replace('%d', '(\d+)', preg_quote($config['file_page'], '!')) => 'view_board', + '/([\w+.]+)/' . preg_quote($config['dir']['res'], '!') . str_replace('%d', '(\d+)', preg_quote($config['file_page'], '!')) => 'view_thread', ); |
