mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8665 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user