From 63c35580c7d60e2278ee6fe9ba2d4440ff0308d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 4 Aug 2013 22:35:08 +0200 Subject: twig implementation --- inc/poche/Tools.class.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inc/poche/Tools.class.php') diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index c277035f..1ff4ba55 100644 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -205,4 +205,9 @@ class Tools { return sha1($string . SALT); } + + public static function checkVar($var) + { + return ((isset ($_REQUEST["$var"])) ? htmlentities($_REQUEST["$var"]) : ''); + } } \ No newline at end of file -- cgit v1.2.3