mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00: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:
parent
fa16e21fd4
commit
eca9470cd4
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue