Signature length limit is not working if I submit this value:
[color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color][color=#BF40BF]hello![/color]
|
Total value length: 1624
Length of text without bb-tags: 342 (57 times expression "hello!" )
Max signature length set up in admin panel: 225
Investigation showed that in file `includes/message_parser.php` line 1157 returns `$message_lenght = 1`:
$message_length = ($mode == 'post') ? utf8_strlen($this->message) : utf8_strlen(preg_replace('#\[\/?[a-z\*\+\-]+(=[\S]+)?\]#ius', ' ', $this->message)); |
I tested it on http://www.try-phpbb.com/ - i can submit such long value as a signature and it doesn't throw an error.
I suppose it should throw max limit error in this case.