aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/textformatter/s9e/factory.php
diff options
context:
space:
mode:
authors9e <s9e.dev@gmail.com>2015-01-16 02:31:14 +0100
committerJoshyPHP <s9e.dev@gmail.com>2015-04-02 19:16:01 +0200
commitdc303cbc993755ec446fcc3f060659668e5073f8 (patch)
treef2f49208e67a8190b99dc106cc3f34d95bc3cbb0 /phpBB/phpbb/textformatter/s9e/factory.php
parentcf39b02891d5ab021e4abc0932e1bb964cbd680c (diff)
downloadforums-dc303cbc993755ec446fcc3f060659668e5073f8.tar
forums-dc303cbc993755ec446fcc3f060659668e5073f8.tar.gz
forums-dc303cbc993755ec446fcc3f060659668e5073f8.tar.bz2
forums-dc303cbc993755ec446fcc3f060659668e5073f8.tar.xz
forums-dc303cbc993755ec446fcc3f060659668e5073f8.zip
[ticket/11768] Toggled Unicode modifier in relative URL filter
get_preg_expression('relative_url') returns an expression that requires it PHPBB3-11768
Diffstat (limited to 'phpBB/phpbb/textformatter/s9e/factory.php')
-rw-r--r--phpBB/phpbb/textformatter/s9e/factory.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php
index 39697f6d4b..06bee34767 100644
--- a/phpBB/phpbb/textformatter/s9e/factory.php
+++ b/phpBB/phpbb/textformatter/s9e/factory.php
@@ -163,13 +163,11 @@ class factory implements \phpbb\textformatter\cache
// Create custom filters for BBCode tokens that are supported in phpBB but not in
// s9e\TextFormatter
- $filter = new RegexpFilter('#^' . get_preg_expression('relative_url') . '$#D');
+ $filter = new RegexpFilter('#^' . get_preg_expression('relative_url') . '$#Du');
$configurator->attributeFilters->add('#local_url', $filter);
$configurator->attributeFilters->add('#relative_url', $filter);
- $regexp = (phpbb_pcre_utf8_support())
- ? '!^([\p{L}\p{N}\-+,_. ]+)$!uD'
- : '!^([a-zA-Z0-9\-+,_. ]+)$!uD';
+ $regexp = '!^([\p{L}\p{N}\-+,_. ]+)$!Du';
$configurator->attributeFilters->add('#inttext', new RegexpFilter($regexp));
// Create custom filters for Flash restrictions, which use the same values as the image