diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2017-09-06 03:35:26 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2017-09-06 03:35:26 +0200 |
commit | 837dc9b3a737e68d12eef033572894a81a2c0de7 (patch) | |
tree | 9047f7a4be8446c04153df3271c7f0b28e40f2ee /phpBB/phpbb/textformatter | |
parent | 1e605efaf126f5474bb1be99e7fdaed834ebb2a0 (diff) | |
download | forums-837dc9b3a737e68d12eef033572894a81a2c0de7.tar forums-837dc9b3a737e68d12eef033572894a81a2c0de7.tar.gz forums-837dc9b3a737e68d12eef033572894a81a2c0de7.tar.bz2 forums-837dc9b3a737e68d12eef033572894a81a2c0de7.tar.xz forums-837dc9b3a737e68d12eef033572894a81a2c0de7.zip |
[ticket/15348] Ignore smilies that are immediately followed by a word
PHPBB3-15348
Diffstat (limited to 'phpBB/phpbb/textformatter')
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/factory.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php index 7719ce5afa..3f2e0ab8cb 100644 --- a/phpBB/phpbb/textformatter/s9e/factory.php +++ b/phpBB/phpbb/textformatter/s9e/factory.php @@ -323,6 +323,9 @@ class factory implements \phpbb\textformatter\cache_interface // Only parse emoticons at the beginning of the text or if they're preceded by any // one of: a new line, a space, a dot, or a right square bracket $configurator->Emoticons->notAfter = '[^\\n .\\]]'; + + // Ignore emoticons that are immediately followed by a "word" character + $configurator->Emoticons->notBefore = '\\w'; } // Load the censored words |