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

New BBCode engine ignores BBCodes with the same base tag

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.2.0-a1
    • BBCode Engine
    • None
    • PHP 5.6.16, MariaDB 10.1

      Currently in phpBB 3.1.6 you can create, say 'test' and 'test=' with no problem.

      With 3.2.0-a1, if you create two BBCodes with the same base tag, the latest one is ignored.

      Steps to reproduce:

      1. Create a BBCode 'test'

      BBCode usage:

      [test]{TEXT}[/test]
      

      HTML replacement:

      <div>BBCode 1: {TEXT}</div>
      

      2. Create BBCode 'test='

      BBCode usage:

      [test={SIMPLETEXT}]{TEXT}[/test]
      

      HTML replacement:

      <div>BBCode 2: {TEXT}[{SIMPLETEXT}]</div>
      

      3. Create a new topic:

      [test]First test[/test]
      [test=2]Second test[/test]
      

      Expected result:

      BBCode 1: First test
      BBCode 2: Second test[2]
      

      Actual result:

      BBCode 1: First test
      BBCode 1: Second test
      

            Unassigned Unassigned
            AbaddonOrmuz AbaddonOrmuz [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: