copy of poche.sqlite

This commit is contained in:
Nicolas Lœuillet
2013-08-05 10:32:15 +02:00
parent e4ed594d82
commit 7f959169b7
5 changed files with 29 additions and 22 deletions

View File

@ -206,8 +206,8 @@ class Tools
return sha1($string . SALT);
}
public static function checkVar($var)
public static function checkVar($var, $default = '')
{
return ((isset ($_REQUEST["$var"])) ? htmlentities($_REQUEST["$var"]) : '');
return ((isset ($_REQUEST["$var"])) ? htmlentities($_REQUEST["$var"]) : $default);
}
}