diff options
| author | 2014-08-12 21:56:34 +0200 | |
|---|---|---|
| committer | 2014-08-12 21:56:34 +0200 | |
| commit | 7900c5e550acafaf0b877635840a8a270eb06078 (patch) | |
| tree | 9702d865c7ffb105bc0b0619f6ef99f82e3c8c61 /lib/Minz/Request.php | |
| parent | ede94098be5d330d4bf120eb8064c5c87eed7ef0 (diff) | |
Move htmlspecialchars_utf8 from Request to Helper
And remove html_chars_utf8 to use htmlspecialchars_utf8 instead in
importExportController
Diffstat (limited to 'lib/Minz/Request.php')
| -rw-r--r-- | lib/Minz/Request.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index f3ecaf55c..52f53012f 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -27,19 +27,13 @@ class Minz_Request { public static function params() { 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) { if (isset(self::$params[$key])) { $p = self::$params[$key]; if (is_object($p) || $specialchars) { return $p; } else { - return self::htmlspecialchars_utf8($p); + return Minz_Helper::htmlspecialchars_utf8($p); } } else { return $default; |
