Resolver las incidencias Very High y High del third Party

Se validaron las incidencias
This commit is contained in:
marcelo.cuiza
2015-04-02 09:44:16 -04:00
parent 245f2118ed
commit d85098ff06
4 changed files with 107 additions and 1 deletions

View File

@@ -443,8 +443,16 @@ class DataBaseMaintenance
if (empty( $aTables ))
return false;
printf( "%-70s", "LOCK TABLES" );
if(is_array($aTables)) {
foreach($aTables as $k => $v) {
$aTables[$k] = mysql_real_escape_string($v);
}
}
$sQuery = "LOCK TABLES " . implode( " READ, ", $aTables ) . " READ; ";
$sQuery = $filter->preventSqlInjection($sQuery);
if (@mysql_query( $sQuery )) {
echo " [OK]\n";
return true;