Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-17076

Signature length limit bug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.3.11
    • 3.3.9
    • Posting
    • None

      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.

            Marc Marc
            lalezky lalezky [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: