mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/12724] Add Squiz.PHP.Eval in the legacy ruleset
PHPBB3-12724
This commit is contained in:
@@ -1287,7 +1287,9 @@ function restore_config($schema)
|
||||
{
|
||||
$var = (empty($m[2]) || empty($convert_config[$m[2]])) ? "''" : "'" . addslashes($convert_config[$m[2]]) . "'";
|
||||
$exec = '$config_value = ' . $m[1] . '(' . $var . ');';
|
||||
// @codingStandardsIgnoreStart
|
||||
eval($exec);
|
||||
// @codingStandardsIgnoreEnd
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -456,7 +456,9 @@ class p_master
|
||||
);
|
||||
|
||||
$is_auth = false;
|
||||
// @codingStandardsIgnoreStart
|
||||
eval('$is_auth = (int) (' . $module_auth . ');');
|
||||
// @codingStandardsIgnoreEnd
|
||||
|
||||
return $is_auth;
|
||||
}
|
||||
|
Reference in New Issue
Block a user