From 5ddf1f6c59b13d3d85d6f6272fd7c966dc7d62a9 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 29 Dec 2005 15:12:20 +0000 Subject: [PATCH] - fix for quote tag for a bug in 2.0.19 git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5393 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/bbcode.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index a7928da605..fb3a06c076 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -389,15 +389,15 @@ function bbencode_first_pass_pda($text, $uid, $open_tag, $close_tag, $close_tag_ // // We're going to try and catch usernames with "[' characters. // - if( preg_match('#\[quote=\\\"#si', $possible_start, $match) && !preg_match('#\[quote=\\\"(.*?)\\\"\]#si', $possible_start) ) + if( preg_match('#\[quote=\\\"#si', $possible_start, $match) && !preg_match('#\[quote=\\\"(.*?)\\\"\]#si', $possible_start) ) { // OK we are in a quote tag that probably contains a ] bracket. // Grab a bit more of the string to hopefully get all of it.. - if ($close_pos = strpos($text, '"]', $curr_pos + 9)) + if ($close_pos = strpos($text, '"]', $curr_pos + 14)) { - if (strpos(substr($text, $curr_pos + 9, $close_pos - ($curr_pos + 9)), '[quote') === false) + if (strpos(substr($text, $curr_pos + 14, $close_pos - ($curr_pos + 14)), '[quote') === false) { - $possible_start = substr($text, $curr_pos, $close_pos - $curr_pos + 2); + $possible_start = substr($text, $curr_pos, $close_pos - $curr_pos + 7); } } }