From bc202b52e08cd48c5cea0508c83bd40fb588a645 Mon Sep 17 00:00:00 2001 From: CraigChilds94 Date: Wed, 24 Feb 2016 20:34:42 +0000 Subject: [PATCH] Escape inputs --- system/input.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system/input.php b/system/input.php index 1cee859af..b2a91e530 100755 --- a/system/input.php +++ b/system/input.php @@ -51,7 +51,13 @@ public static function detect($method) { public static function get($key, $fallback = null) { if(is_array($key)) return static::get_array($key, $fallback); - return Arr::get(static::$array, $key, $fallback); + $data = Arr::get(static::$array, $key, $fallback); + + if (is_string($data)) { + return e($data); + } + + return $data; } /**