aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/input.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/input.php')
-rw-r--r--engine/lib/input.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/lib/input.php b/engine/lib/input.php
index c62539f49..c1b575e64 100644
--- a/engine/lib/input.php
+++ b/engine/lib/input.php
@@ -12,20 +12,20 @@
*/
/**
- * Get some input from passed variables.
+ * Get some input from variables passed on the GET or POST line.
*
* @param $variable string The variable we want to return.
* @param $default mixed A default value for the variable if it is not found.
*/
function get_input($variable, $default = "")
{
-
-
- // TODO: Some nice filtering here
- if (isset($_REQUEST[$variable]))
- return trim($_REQUEST[$variable]);
-
- return $default;
+ if (isset($_REQUEST[$variable])) {
+ $value = $_REQUEST[$variable];
+ return trim($_REQUEST[$variable]);
+ }
+
+ return $default;
+
}
?> \ No newline at end of file