- fixed breaking quote bbcode ([quote])

git-svn-id: file:///svn/phpbb/trunk@5158 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2005-06-10 18:59:08 +00:00
parent e6469bb0d0
commit 38c7e4146f

View file

@ -472,8 +472,8 @@ class bbcode_firstpass extends bbcode
$out = '['; $out = '[';
// Add newline at the end and in front of each quote block to prevent parsing errors (urls, smilies, etc.) // Add newline at the end and in front of each quote block to prevent parsing errors (urls, smilies, etc.)
$in = preg_replace(array('#\[quote(=?.*?)\]([^\n])#is', '#([^\n])\[\/quote\]#is'), array("[quote\\1]\n\\2", "\\1\n[/quote]"), $in); $in = preg_replace(array('#\[quote(=".*?")?\]([^\n])#is', '#([^\n])\[\/quote\]#is'), array("[quote\\1]\n\\2", "\\1\n[/quote]"), $in);
$in = preg_replace(array('#\[quote(=?.*?)\]([^\n])#is', '#([^\n])\[\/quote\]#is'), array("[quote\\1]\n\\2", "\\1\n[/quote]"), $in); $in = preg_replace(array('#\[quote(=".*?")?\]([^\n])#is', '#([^\n])\[\/quote\]#is'), array("[quote\\1]\n\\2", "\\1\n[/quote]"), $in);
$in = substr(str_replace('\"', '"', $in), 1); $in = substr(str_replace('\"', '"', $in), 1);
$close_tags = $error_ary = array(); $close_tags = $error_ary = array();