aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Tools.class.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-05 10:32:15 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-05 10:32:15 +0200
commit7f959169b7220b4ed3e083cb2a545fe2c5400f9c (patch)
tree8b095a693b2ab306d6b83b46de1936ff88e9a350 /inc/poche/Tools.class.php
parente4ed594d8246ba5877b86e61f7f85c1b3010f62c (diff)
downloadwallabag-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.php4
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