Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Injection SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Toufik MECHOUET committed Sep 17, 2015
1 parent 24c2d4e commit 0392c2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/class/centreonDB.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,12 @@ public function numberRows() {
*/
public static function check_injection($sString)
{
/*
if (preg_match('/\s'.implode('|', self::$aForbiden) . '\s/i', $sString)) {
throw new Exception("sql injection detected in string QUERY : " . $sString);
return 1;
}

*/
return 0;
}

Expand Down

0 comments on commit 0392c2a

Please sign in to comment.