mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Additional [php] protection
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
$search = array(""", "'", "$", '<br />', E_NL, "->");
|
||||
$replace = array('"', "'", "$", "\n", "\n", "->");
|
||||
$code_text = str_replace($search, $replace, $code_text);
|
||||
return eval($code_text);
|
||||
if(!$postID) { return ''; }
|
||||
if($postID == 'admin' || check_class($pref['php_bbcode'], '', $postID))
|
||||
{
|
||||
$search = array(""", "'", "$", '<br />', E_NL, "->");
|
||||
$replace = array('"', "'", "$", "\n", "\n", "->");
|
||||
$code_text = str_replace($search, $replace, $code_text);
|
||||
return eval($code_text);
|
||||
}
|
||||
return '';
|
||||
|
Reference in New Issue
Block a user