From: marcus Date: Wed, 1 Jul 2009 13:08:21 +0000 (+0000) Subject: Closes #1097: Results set by set_input are now also filtered by get_input() X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d893a8fd0e1dca7d2ec40f4621733e30343f091f;p=lorea%2Felgg.git 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 --- 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])) {