]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Tools.class.php
copy of poche.sqlite
[github/wallabag/wallabag.git] / inc / poche / Tools.class.php
index 1ff4ba55c90680790d9b9819e9d7dee23d672476..834940ffb4ec98359a53bd753f173d3a621e2bbb 100644 (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);
     }
 }
\ No newline at end of file