summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/WT/Filter.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/WT/Filter.php b/library/WT/Filter.php
index 2eacb87b23..fa523b0d34 100644
--- a/library/WT/Filter.php
+++ b/library/WT/Filter.php
@@ -259,6 +259,13 @@ class WT_Filter {
}
//////////////////////////////////////////////////////////////////////////////
+ // Validate COOKIE requests
+ //////////////////////////////////////////////////////////////////////////////
+ public static function cookie($variable, $regexp=null, $default=null) {
+ return self::_input(INPUT_COOKIE, $variable, $regexp, $default);
+ }
+
+ //////////////////////////////////////////////////////////////////////////////
// Cross-Site Request Forgery tokens - ensure that the user is submitting
// a form that was generated by the current session.
//////////////////////////////////////////////////////////////////////////////