mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8665 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7252f69b1a
commit
aa2baa7eaa
1 changed files with 4 additions and 1 deletions
|
@ -400,7 +400,10 @@ class bbcode_firstpass extends bbcode
|
||||||
case 'php':
|
case 'php':
|
||||||
|
|
||||||
$remove_tags = false;
|
$remove_tags = false;
|
||||||
$code = str_replace(array('<', '>'), array('<', '>'), $code);
|
|
||||||
|
$str_from = array('<', '>', '[', ']', '.', ':', ':');
|
||||||
|
$str_to = array('<', '>', '[', ']', '.', ':', ':');
|
||||||
|
$code = str_replace($str_from, $str_to, $code);
|
||||||
|
|
||||||
if (!preg_match('/\<\?.*?\?\>/is', $code))
|
if (!preg_match('/\<\?.*?\?\>/is', $code))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue