diff options
| author | 2013-08-25 21:40:39 +0200 | |
|---|---|---|
| committer | 2013-08-25 21:40:39 +0200 | |
| commit | 6981a24b9c41c577d9c47e7e53c094fbecbb6b38 (patch) | |
| tree | 9a0d1eccd34752ff4d3767fd6d47d9687380965a /lib/minz/Request.php | |
| parent | 4cf9119a7dfd8b8a45344dff4d884a445dcb5a5a (diff) | |
More explicit UTF-8
More explicit UTF-8 in PDO MySQL, html_entity_decode, htmlentities, and
htmlspecialchars (less important)
Diffstat (limited to 'lib/minz/Request.php')
| -rw-r--r-- | lib/minz/Request.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/minz/Request.php b/lib/minz/Request.php index bd5fcb95e..eea5c87cb 100644 --- a/lib/minz/Request.php +++ b/lib/minz/Request.php @@ -35,9 +35,9 @@ class Request { if(is_object($p) || $specialchars) { return $p; } elseif(is_array($p)) { - return array_map('htmlspecialchars', $p); + return array_map('htmlspecialchars', $p, ENT_NOQUOTES, 'UTF-8'); } else { - return htmlspecialchars($p); + return htmlspecialchars($p, ENT_NOQUOTES, 'UTF-8'); } } else { return $default; |
