Merged in bugfix/PMCORE-1225-C (pull request #7917)
PMCORE-1225 execute-query-blacklist.ini not working according to the documentation Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
ff13d14727
@@ -121,8 +121,8 @@ class SqlBlacklist extends Parser
|
||||
|
||||
//verify system tables
|
||||
$tables = $config['tables'];
|
||||
$fn($this->statements, function ($table) use ($tables) {
|
||||
if (in_array($table, $tables)) {
|
||||
$fn($this->statements, function ($table) use ($tables, $notExecuteQuery) {
|
||||
if (in_array($table, $tables) && $notExecuteQuery) {
|
||||
throw new Exception(G::loadTranslation('ID_NOT_EXECUTE_QUERY', [$table]));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user