PMCORE-3640

This commit is contained in:
Paula Quispe
2022-03-23 16:06:30 -04:00
parent c55a6861a3
commit 50a58c8bdc

View File

@@ -241,14 +241,15 @@ function executeQuery($sqlStatement, $dbConnectionUID = 'workflow', $parameters
try {
try {
(new SqlBlacklist($sqlStatement))->validate();
$sqlStatementCheck = trim($sqlStatement);
$sqlStatementCheck = str_replace('(', '', $sqlStatementCheck);
(new SqlBlacklist($sqlStatementCheck))->validate();
} catch (Exception $e) {
G::SendTemporalMessage($e->getMessage(), 'error', 'labels');
throw new SQLException($e->getMessage());
}
$statement = trim($sqlStatement);
$statement = str_replace('(', '', $statement);
$statement = $sqlStatementCheck;
$result = false;
// Check to see if we're not running oracle, which is usually a safe default