Topic: Quote overflow

Sorry another bbcode glitch sad not serious thought so i'm not sure if its worth fixing, (although i guess it could be easily fixed with a loop that keeps going until no more overflows are found)

        else if ($overflow)
            // The quote depth level was too high, so we strip out the inner most quote(s)
            $text = substr($text, 0, $overflow[0]).substr($text, $overflow[1], (strlen($text) - $overflow[0]));

only the last overflowing quote block is returned e.g.

1 wrote:
2 wrote:
3 wrote:
1 wrote:
2 wrote:
3 wrote:

Re: Quote overflow

I don't understand.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Quote overflow

Well in PunBB you are only meant to be able to have 3 quotes deep in the code any after that are stripped, but if you look above i've managed to post a quote 5 deep. Its not too important just thought i'd mention it.

Re: Quote overflow

Ah, yes. Now I see.

"Programming is like sex: one mistake and you have to support it for the rest of your life."