diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 02:08:55 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-31 02:08:55 -0400 |
| commit | 42cba538878cb695ba8b3093f72bc66ccd2fa074 (patch) | |
| tree | 5e0f74d1b933567dc76810d1f9cfb73ffe8efeda /inc/config.php | |
| parent | 3bee1ba4fd16263ac4eefdf0bc8c7a3d11d8cccb (diff) | |
Allow Unicode in board URIs.
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php index 28a7a4db..36518028 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1130,6 +1130,9 @@ // 'type' => 'scp' //); + // Regex for board URIs + $config['board_regex'] = '[0-9a-zA-Z$_\x{0080}-\x{FFFF}]{1,58}'; + // Complex regular expression to catch URLs $config['url_regex'] = '/' . '(https?|ftp):\/\/' . '(([\w\-]+\.)+[a-zA-Z]{2,6}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' . '(:\d+)?' . '(\/([\w\-~.#\/?=&;:+%!*\[\]@$\'()+,|\^]+)?)?' . '/'; |
