From bc286f23c6da7bc5a60cbc86700cb37e3f6ae6ab Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Wed, 10 Nov 2010 20:30:02 +0000
Subject: [PATCH] Fix: XSS injection

---
 htdocs/lib/functions.lib.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php
index 5a658016a0b..388988198fb 100644
--- a/htdocs/lib/functions.lib.php
+++ b/htdocs/lib/functions.lib.php
@@ -51,7 +51,7 @@ function GETPOST($paramname,$check='')
     if (!empty($check))
     {
     	// Check if integer
-    	if ($check = 'int' && is_int($out)) $out='';
+    	if ($check = 'int' && ! is_int($out)) $out='';
     }
     
     return $out;
-- 
GitLab