Posted by jacobangel on May 1, 2009 at 2:15pm
| Project: | Bbcode |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (to be ported) |
Issue Summary
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.
Comments
#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.
#3