diff --git a/main/inc/lib/stats.lib.inc.php b/main/inc/lib/stats.lib.inc.php index c866d7fcfe..85dd887acc 100755 --- a/main/inc/lib/stats.lib.inc.php +++ b/main/inc/lib/stats.lib.inc.php @@ -39,9 +39,7 @@ */ /* -============================================================================== Variables -============================================================================== */ // regroup table names for maintenance purpose @@ -171,11 +169,11 @@ function decodeOpenInfos() { ignore_user_abort($ignore); } -/*************************************************************************** +/* * * Utils * - ***************************************************************************/ + */ /** * @author Sebastien Piraux @@ -187,6 +185,7 @@ function decodeOpenInfos() { */ function cleanProcessedRecords( $limit ) { global $TABLETRACK_OPEN; + $limit = Database::escape_string($limit); $sql = "UPDATE `".$TABLETRACK_OPEN."` SET open_remote_host = '', open_agent = '', @@ -196,11 +195,10 @@ function cleanProcessedRecords( $limit ) { Database::query("OPTIMIZE TABLE $TABLETRACK_OPEN"); } -/*************************************************************************** - * - * Provider +/** + * Provider * - ***************************************************************************/ + **/ /** * @author Sebastien Piraux