Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-14357

New BBCode engine ignores BBCodes with the same base tag

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2.0-a1
    • Fix Version/s: None
    • Component/s: BBCode Engine
    • Labels:
      None
    • Environment:
      PHP 5.6.16, MariaDB 10.1

      Description

      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
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                AbaddonOrmuz AbaddonOrmuz
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: