Enable array_key_exists for smarty templates
Used in 2k11 for PHP 8 compatibility checks
This commit is contained in:
parent
48211e27b1
commit
b886a6a66c
@ -12,7 +12,7 @@
|
||||
class Serendipity_Smarty_Security_Policy extends Smarty_Security
|
||||
{
|
||||
// these are the allowed functions only. - default as is
|
||||
public $php_functions = array('isset', 'empty', 'count', 'sizeof', 'in_array', 'is_array', 'time', 'nl2br', 'class_exists');
|
||||
public $php_functions = array('isset', 'empty', 'count', 'sizeof', 'in_array', 'is_array', 'time', 'nl2br', 'class_exists', );
|
||||
// to disable all PHP functions
|
||||
#public $php_functions = null;
|
||||
|
||||
@ -20,7 +20,7 @@ class Serendipity_Smarty_Security_Policy extends Smarty_Security
|
||||
public $php_handling = Smarty::PHP_REMOVE; // = 2
|
||||
|
||||
// set allowed modifiers only. (default = array( 'escape', 'count' );)
|
||||
public $php_modifiers = array('escape', 'sprintf', 'sizeof', 'count', 'rand', 'print_r', 'str_repeat', 'nl2br');
|
||||
public $php_modifiers = array('escape', 'sprintf', 'sizeof', 'count', 'rand', 'print_r', 'str_repeat', 'nl2br', 'array_key_exists');
|
||||
|
||||
public $allow_constants = true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user