Fork me on GitHub
Subscribe 1

Ticket #9 (fixed bug)

Parser shouldn't replace empty BBCode inside [code] tags

  • Created: 2010-05-23 21:17:26
  • Reported by: Franz
  • Assigned to: Franz
  • Milestone: 1.4.0
  • Component: parser
  • Priority: normal

At the moment we simply replace any empty BBCode at the end of the pre-parsing. Really we need to do a second split and only replace empty bbcode that is outside code tags.

History

Franz 2010-05-24 11:23:10

  • Owner set to Franz.

I will take a look at this, although I'm not totally sure I can fix it.

Franz 2010-05-24 11:34:05

Commit fbd03d8 to fluxbb fluxbb-1.4

Don't replace empty BBCode inside code tags. This is an attempt to fix #9.

Franz 2010-05-24 11:34:41

I think I fixed this. I'm not entirely sure whether it can be optimized, though. Would it hurt to just do one split? Obviously BBCode errors in code tags which are found by preparse_tags() shouldn't be worried about either, no?

Franz 2010-05-25 19:18:06

  • Status changed from open to fixed.