mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
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:
@@ -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..
|
// 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 + 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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user