diff options
author | s9e <s9e.dev@gmail.com> | 2015-01-16 03:54:42 +0100 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-04-02 19:16:01 +0200 |
commit | e0bb446c57d692b3e968a7a3ccd9d726f0779391 (patch) | |
tree | c8c78b53f3e642f7687cbf99b48f8d6d26fc8183 | |
parent | [ticket/11768] Toggled Unicode modifier in relative URL filter (diff) | |
download | phpbb-e0bb446c57d692b3e968a7a3ccd9d726f0779391.tar.gz phpbb-e0bb446c57d692b3e968a7a3ccd9d726f0779391.tar.bz2 phpbb-e0bb446c57d692b3e968a7a3ccd9d726f0779391.zip |
[ticket/11768] Reorganized code for readability
No functional change intended
PHPBB3-11768
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/factory.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php index 06bee34767..d000262bec 100644 --- a/phpBB/phpbb/textformatter/s9e/factory.php +++ b/phpBB/phpbb/textformatter/s9e/factory.php @@ -167,8 +167,9 @@ class factory implements \phpbb\textformatter\cache $configurator->attributeFilters->add('#local_url', $filter); $configurator->attributeFilters->add('#relative_url', $filter); - $regexp = '!^([\p{L}\p{N}\-+,_. ]+)$!Du'; - $configurator->attributeFilters->add('#inttext', new RegexpFilter($regexp)); + // INTTEXT regexp from acp_bbcodes + $filter = new RegexpFilter('!^([\p{L}\p{N}\-+,_. ]+)$!Du'); + $configurator->attributeFilters->add('#inttext', $filter); // Create custom filters for Flash restrictions, which use the same values as the image // restrictions but have their own error message |