mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
ahhh, there we have it... related to several reports about code blocks and bbcode parsing (#1302)
git-svn-id: file:///svn/phpbb/trunk@5707 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -348,7 +348,7 @@ class bbcode_firstpass extends bbcode
|
||||
ob_end_clean();
|
||||
|
||||
$str_from = array('<font color="syntax', '</font>', '<code>', '</code>','[', ']', '.', ':');
|
||||
$str_to = array('<span class="syntax', '</span>', '', '', '[', ']', '.', ':');
|
||||
$str_to = array('<span class="syntax', '</span>', '', '', '[', ']', '.', ':');
|
||||
|
||||
if ($remove_tags)
|
||||
{
|
||||
@@ -374,7 +374,7 @@ class bbcode_firstpass extends bbcode
|
||||
|
||||
default:
|
||||
$str_from = array('<', '>', '[', ']', '.', ':');
|
||||
$str_to = array('<', '>', '[', ']', '.', ':');
|
||||
$str_to = array('<', '>', '[', ']', '.', ':');
|
||||
|
||||
$out .= '[code:' . $this->bbcode_uid . ']' . str_replace($str_from, $str_to, $code) . '[/code:' . $this->bbcode_uid . ']';
|
||||
}
|
||||
|
Reference in New Issue
Block a user