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

Swapped variables in bbcode, first one doesn't get parsed

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-RC1
    • Fix Version/s: 3.2.0-RC2
    • Component/s: BBCode Engine
    • Labels:
    • Environment:
      PHP 5.6.15, MySQL 5.0.11-dev, Chrome 54.0.2840.87 m

      Description

      When creating a bbcode and you swap the variables in the html replacement, the first one doesn't get parsed.
      for example:
      [mod=

      {TEXT1}]{TEXT2}[/mod]

       


      <div style="padding: .2em .5em; font-size: .8em; width: 200px; background: #FFD;">{TEXT2}<div style="font-weight: bold; text-align: right">- {TEXT1}

      </div></div>

      results in:
      [mod=Mickroz]moderator text[/mod]
      {code:html}
      <div style="padding: .2em .5em; font-size: .8em; width: 200px; background: #FFD;">moderator text<div style="font-weight: bold; text-align: right">- </div></div>
      

      if you keep them in order they get parsed.
      [mod=Mickroz]moderator text[/mod]

      <div style="padding: .2em .5em; font-size: .8em; width: 200px; background: #FFD;">{TEXT1}<div style="font-weight: bold; text-align: right">- {TEXT2}</div></div>
      

      results in:

      <div style="padding: .2em .5em; font-size: .8em; width: 200px; background: #FFD;">Mickroz<div style="font-weight: bold; text-align: right">- moderator text</div></div>
      

      this works as it should on my 3.0.14 and 3.1.10 board.

        Attachments

          Activity

            People

            • Assignee:
              CHItA CHItA
              Reporter:
              Mickroz Mickroz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: