Merged in julceslau/processmaker/HOR-731 (pull request #4079)

HOR-731
This commit is contained in:
Julio Cesar Laura Avendaño
2016-04-08 18:46:14 -04:00

View File

@@ -250,6 +250,9 @@ function executeQuery ($SqlStatement, $DBConnectionUID = 'workflow', $aParameter
((isset($blackList['tables']))? $blackList['tables'] : '') .
((isset($blackList['pmtables']))? $blackList['pmtables'] : '')
);
if (!class_exists('PHPSQLParser')) {
G::LoadSystem('phpSqlParser');
}
$parseSqlStm = new PHPSQLParser($SqlStatement);
try {
//Parsing queries and check the blacklist