X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fenv.php;h=aed838be351ce3302985a72f062020d85e1cf709;hb=4c64e1e7926e82b917c4bc7bf47e51475d44d04a;hp=a40538c80527b5e1eacaec779a25b8fc5836622c;hpb=a2446af5ed70964a8b346815798543c672bb1b87;p=platal.git diff --git a/classes/env.php b/classes/env.php index a40538c..aed838b 100644 --- a/classes/env.php +++ b/classes/env.php @@ -162,13 +162,6 @@ function fix_gpc_magic(&$item, $key) { $item = stripslashes($item); } } -function fix_encoding(&$item, $key = null) { - if (is_array($item)) { - array_walk($item, 'fix_encoding'); - } elseif (preg_match('/[\x80-\x9f]/', $item)) { - $item = iconv('CP1252', 'ISO-8859-15//TRANSLIT', $item); - } -} if (ini_get('magic_quotes_gpc') && empty($DONT_FIX_GPC)) { array_walk($_GET, 'fix_gpc_magic'); @@ -176,7 +169,6 @@ if (ini_get('magic_quotes_gpc') && empty($DONT_FIX_GPC)) { array_walk($_COOKIE, 'fix_gpc_magic'); array_walk($_REQUEST, 'fix_gpc_magic'); } -array_walk($_POST, 'fix_encoding'); -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>