mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
copy of poche.sqlite
This commit is contained in:
parent
e4ed594d82
commit
7f959169b7
5 changed files with 29 additions and 22 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue