mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
parent
56a70484ef
commit
e8e4d92d01
1 changed files with 2 additions and 2 deletions
|
@ -348,7 +348,7 @@ class bbcode_firstpass extends bbcode
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
$str_from = array('<font color="syntax', '</font>', '<code>', '</code>','[', ']', '.', ':');
|
$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)
|
if ($remove_tags)
|
||||||
{
|
{
|
||||||
|
@ -374,7 +374,7 @@ class bbcode_firstpass extends bbcode
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$str_from = array('<', '>', '[', ']', '.', ':');
|
$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 . ']';
|
$out .= '[code:' . $this->bbcode_uid . ']' . str_replace($str_from, $str_to, $code) . '[/code:' . $this->bbcode_uid . ']';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue