diff options
| author | 2014-06-14 09:05:46 +0200 | |
|---|---|---|
| committer | 2014-06-14 09:05:46 +0200 | |
| commit | 5a98cc7532c1dbc0c790caefa5ff317663a80740 (patch) | |
| tree | a6705f67a706f3ee9e427e0dcd1d108b0ee64ef0 /lib | |
| parent | 61f4d5457818204eb28ed394d4f1b97160542baa (diff) | |
| parent | a7e833280954a537e12d5a3f4fa12a5b9e8412da (diff) | |
Merge branch 'aledeg-user-queries' into dev
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Request.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index 7e3c59990..755784522 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -28,6 +28,9 @@ class Minz_Request { return self::$params; } static function htmlspecialchars_utf8 ($p) { + if (is_array($p)) { + return array_map('self::htmlspecialchars_utf8', $p); + } return htmlspecialchars($p, ENT_COMPAT, 'UTF-8'); } public static function param ($key, $default = false, $specialchars = false) { @@ -35,8 +38,6 @@ class Minz_Request { $p = self::$params[$key]; if(is_object($p) || $specialchars) { return $p; - } elseif(is_array($p)) { - return array_map('self::htmlspecialchars_utf8', $p); } else { return self::htmlspecialchars_utf8($p); } |
