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
This commit is contained in:
Meik Sievertsen 2003-02-25 18:19:01 +00:00
parent fa16e21fd4
commit eca9470cd4

View file

@ -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);
}
}
}