aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-01 13:08:21 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-07-01 13:08:21 +0000
commitd893a8fd0e1dca7d2ec40f4621733e30343f091f (patch)
tree8eb592d5081ef04602f5d31cc9b37d48b7b824a6 /engine
parentec1fdfb796f5e0442cd5ce11eb8b1cb52c6d8b6d (diff)
downloadelgg-d893a8fd0e1dca7d2ec40f4621733e30343f091f.tar.gz
elgg-d893a8fd0e1dca7d2ec40f4621733e30343f091f.tar.bz2
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
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/input.php10
1 files 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])) {