diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-05 10:32:15 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-05 10:32:15 +0200 |
commit | 7f959169b7220b4ed3e083cb2a545fe2c5400f9c (patch) | |
tree | 8b095a693b2ab306d6b83b46de1936ff88e9a350 /inc/poche/Tools.class.php | |
parent | e4ed594d8246ba5877b86e61f7f85c1b3010f62c (diff) | |
download | wallabag-7f959169b7220b4ed3e083cb2a545fe2c5400f9c.tar.gz wallabag-7f959169b7220b4ed3e083cb2a545fe2c5400f9c.tar.zst wallabag-7f959169b7220b4ed3e083cb2a545fe2c5400f9c.zip |
copy of poche.sqlite
Diffstat (limited to 'inc/poche/Tools.class.php')
-rw-r--r-- | inc/poche/Tools.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 1ff4ba55..834940ff 100644 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php | |||
@@ -206,8 +206,8 @@ class Tools | |||
206 | return sha1($string . SALT); | 206 | return sha1($string . SALT); |
207 | } | 207 | } |
208 | 208 | ||
209 | public static function checkVar($var) | 209 | public static function checkVar($var, $default = '') |
210 | { | 210 | { |
211 | return ((isset ($_REQUEST["$var"])) ? htmlentities($_REQUEST["$var"]) : ''); | 211 | return ((isset ($_REQUEST["$var"])) ? htmlentities($_REQUEST["$var"]) : $default); |
212 | } | 212 | } |
213 | } \ No newline at end of file | 213 | } \ No newline at end of file |