From d893a8fd0e1dca7d2ec40f4621733e30343f091f Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 1 Jul 2009 13:08:21 +0000 Subject: Closes #1097: Results set by set_input are now also filtered by get_input() git-svn-id: https://code.elgg.org/elgg/trunk@3374 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/input.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/engine/lib/input.php b/engine/lib/input.php index 1380860b8..51bddf9f8 100644 --- a/engine/lib/input.php +++ b/engine/lib/input.php @@ -23,8 +23,14 @@ global $CONFIG; - if (isset($CONFIG->input[$variable])) - return $CONFIG->input[$variable]; + if (isset($CONFIG->input[$variable])) { + $var = $CONFIG->input[$variable]; + + if ($filter_result) + $var = filter_tags($var); + + return $var; + } if (isset($_REQUEST[$variable])) { -- cgit v1.2.3