From 0392c2af52699a79d7b3596f27149b6e10481c54 Mon Sep 17 00:00:00 2001 From: Toufik MECHOUET Date: Thu, 17 Sep 2015 13:45:57 +0200 Subject: [PATCH] Injection SQL --- www/class/centreonDB.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/class/centreonDB.class.php b/www/class/centreonDB.class.php index c4a28e532f7..afa241188ca 100644 --- a/www/class/centreonDB.class.php +++ b/www/class/centreonDB.class.php @@ -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; }