Enforcing a limit of 50 smilies per parsed message
authorAlexander Ebert <ebert@woltlab.com>
Tue, 8 Nov 2016 10:03:56 +0000 (11:03 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 8 Nov 2016 10:03:56 +0000 (11:03 +0100)
commita5d56959624f512ca469b26d6c5aa05e26e96f4f
tree77ad882a83dc9842743a86f3490c75bc31e9dc8f
parent5b59d49a1c2e11c7aef52bcfcccf558c50534abd
Enforcing a limit of 50 smilies per parsed message

Exceeding smilies will be ignored:
- `<img>` will be reverted into the textual representation
- text smilies will be left untouched

The limit is enforced for both types of smilies that could occur, for
example having 47 smilies using `<img>` will cause at maximum 3 text
smilies to be converted into actual images.
wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php