mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
- fixed breaking quote bbcode ([quote])
git-svn-id: file:///svn/phpbb/trunk@5158 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e6469bb0d0
commit
38c7e4146f
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue