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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 3.2.0-RC1
    • 3.2.0-RC2
    • BBCode Engine
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: