Spoiler: Screenshot
Code: Select all
[quote][spoiler]Stuff[/quote][/spoiler]
(Hooray for PHP, HML, CSS and JavaScript all stuck together with tape and gum.

Moderator: GZDoom Developers
Spoiler: Screenshot
Code: Select all
[quote][spoiler]Stuff[/quote][/spoiler]
Code: Select all
[quote][spoiler]Stuff[/quote][/spoiler]
Code: Select all
[quote][spoiler]Stuff[/spoiler][/quote]
Code: Select all
[spoiler][quote]Stuff[/quote][/spoiler]
Code: Select all
[quote][spoiler]Stuff[/quote][/spoiler]
[∕spoiler]Spoiler:
It does with other tags:Eruanna wrote:I thought phpBB had handling in place to prevent that - as far as I remember it used to produce Gez's output more than it ever produced what NeuralStunner linked.
It seems to be Quote+Spoiler that doesn't quite work right.Code: Select all
[/quote]
I'm not sure what spoiler code is in use here, but I don't have this problem on my own forum. Crossing these tags as in the OP will actually produce a functional spoiler inside a quote, since both are set up to use <BLOCKQUOTE>.
Spoiler: Codes I'm using
Code: Select all
[list][quote][*]test[/list][/quote]test
Well, this mess also fails gracefully (if you can call it that):Eruanna wrote:You used a [ code ] block which by definition ignores BB Codes inside of it.
Code: Select all
[spoiler][list][quote][wiki][/quote][/spoiler][/wiki][/list]
Spoiler:[/wiki][/list]
By the way, I just wanted to comment on this -Dark-Assassin wrote:It acts the same as crossing different HTML tags. It's not something that's going to be easily fixed. The best you can do is just fix your user (or their if you're a moderator) errors.
Wouldn't the original code not throw an error still since there's two opening and two closing tags?Eruanna wrote:There is an actual "easy fix" for this. Simply count tags.
For each tag X, where [x] opens and [/x] closes, count every tag in between. Every open tag [y] increments the counter for [x] by 1, and every close tag [/y] decrements the counter.
If when [/x] closes from the tag count is not properly "0" - then reject the post, and give the user an error.
For nesting tags, this should simply be tracked from within each successful nesting.
Code: Select all
[quote][spoiler]Stuff[/quote][/spoiler]
Spoiler: