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