Fix: XSS injection

This commit is contained in:
Regis Houssin 2010-11-10 20:30:02 +00:00
parent c1b9878ba2
commit bc286f23c6

View File

@ -51,7 +51,7 @@ function GETPOST($paramname,$check='')
if (!empty($check)) if (!empty($check))
{ {
// Check if integer // Check if integer
if ($check = 'int' && is_int($out)) $out=''; if ($check = 'int' && ! is_int($out)) $out='';
} }
return $out; return $out;