diff options
| author | Andreas Fischer <bantu@phpbb.com> | 2014-06-16 01:37:21 +0200 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2014-06-16 01:37:21 +0200 |
| commit | 663c375f5c1547e80f79aae0775eed0039956699 (patch) | |
| tree | 804b9afc203c9e06e34a81879a62ec639c16d8d1 /phpBB/includes | |
| parent | f27be59cf1bc97ac9da6bc7f963b1e0c44ee248b (diff) | |
| parent | 5a320adc75faffe27d9d0b822e30106f1d27f2c2 (diff) | |
| download | forums-663c375f5c1547e80f79aae0775eed0039956699.tar forums-663c375f5c1547e80f79aae0775eed0039956699.tar.gz forums-663c375f5c1547e80f79aae0775eed0039956699.tar.bz2 forums-663c375f5c1547e80f79aae0775eed0039956699.tar.xz forums-663c375f5c1547e80f79aae0775eed0039956699.zip | |
Merge pull request #2605 from Nicofuma/ticket/12724
[ticket/12724] Add Squiz.PHP.Eval in the legacy ruleset
* Nicofuma/ticket/12724:
[ticket/12724] Add Squiz.PHP.Eval in the legacy ruleset
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/functions_convert.php | 2 | ||||
| -rw-r--r-- | phpBB/includes/functions_module.php | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/functions_convert.php b/phpBB/includes/functions_convert.php index e68e770b3a..186e3b50f0 100644 --- a/phpBB/includes/functions_convert.php +++ b/phpBB/includes/functions_convert.php @@ -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 { diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php index 51284af233..b7615e923b 100644 --- a/phpBB/includes/functions_module.php +++ b/phpBB/includes/functions_module.php @@ -456,7 +456,9 @@ class p_master ); $is_auth = false; + // @codingStandardsIgnoreStart eval('$is_auth = (int) (' . $module_auth . ');'); + // @codingStandardsIgnoreEnd return $is_auth; } |
