BBCode has problems with broken quotes
jacobangel - May 1, 2009 - 14:15
| Project: | Bbcode |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
If you put the BBCode filter after the HTML Correcter, and a user enters [/quote], the end tag still gets filtered into a closing div tag. This is bad, as it effs the ess out of most modern layouts.
The test file doesn't check for this case, so that's probably why it's missed.

#1
To clarify if someone were to post:
[/quote]I don't know this good.
[/quote]
becomes
</blockquote></div>
I don't know this good.
</blockquote></div>
or whatever exactly end tags get filtered to be.
#2
I wrote up a quick patch.
Sorry if I screwed up doing it; it's my first patch.