Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Escape inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigChilds94 committed Feb 24, 2016
1 parent df56dae commit bc202b5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion system/input.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit bc202b5

Please sign in to comment.