From eca9470cd4026299becfef4c1b60342b1a9def66 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 25 Feb 2003 18:19:01 +0000 Subject: [PATCH] prevent breaking of page if quote is missing. ;) hopefully nothing is broken now. :D git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3529 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/bbcode.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index f2c6d7be96..774f99cde2 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -393,7 +393,10 @@ function bbencode_first_pass_pda($text, $uid, $open_tag, $close_tag, $close_tag_ // Grab a bit more of the string to hopefully get all of it.. if ($close_pos = strpos($text, '"]', $curr_pos + 9)) { - $possible_start = substr($text, $curr_pos, $close_pos - $curr_pos + 2); + if (strpos(substr($text, $curr_pos + 9, $close_pos - ($curr_pos + 9)), '[quote') === false) + { + $possible_start = substr($text, $curr_pos, $close_pos - $curr_pos + 2); + } } }