From 6981a24b9c41c577d9c47e7e53c094fbecbb6b38 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 25 Aug 2013 21:40:39 +0200 Subject: More explicit UTF-8 More explicit UTF-8 in PDO MySQL, html_entity_decode, htmlentities, and htmlspecialchars (less important) --- lib/minz/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/minz/Request.php') 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; -- cgit v1.2.3