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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.2.0-RC2
    • 3.2.0-RC1
    • BBCode Engine
    • PHP 5.6.15, MySQL 5.0.11-dev, Chrome 54.0.2840.87 m

      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.

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

              Created:
              Updated:
              Resolved: