1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13492] Add the migration to update custom bbcodes with IDN regexps

Also fix the $utf8 checking regexp removing the curly braces.

PHPBB3-13492
This commit is contained in:
rxu
2015-01-12 00:11:45 +07:00
parent 17f4dce0fc
commit 8002af7526
2 changed files with 71 additions and 1 deletions

View File

@@ -411,7 +411,7 @@ class acp_bbcodes
$bbcode_tpl = trim($bbcode_tpl);
// Allow unicode characters for URL|LOCAL_URL|RELATIVE_URL|INTTEXT tokens
$utf8 = preg_match('/\{(URL|LOCAL_URL|RELATIVE_URL|INTTEXT)\}/', $bbcode_match);
$utf8 = preg_match('/(URL|LOCAL_URL|RELATIVE_URL|INTTEXT)/', $bbcode_match);
$utf8_pcre_properties = phpbb_pcre_utf8_support();