From: x2003bruneau Date: Sat, 27 Jan 2007 17:53:38 +0000 (+0000) Subject: Output filter to remove windows specific chararcters X-Git-Tag: xorg/0.9.13~57 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a2446af5ed70964a8b346815798543c672bb1b87;p=platal.git Output filter to remove windows specific chararcters & some fixes git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1414 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/classes/env.php b/classes/env.php index 938596c..a40538c 100644 --- a/classes/env.php +++ b/classes/env.php @@ -162,7 +162,7 @@ function fix_gpc_magic(&$item, $key) { $item = stripslashes($item); } } -function fix_encoding(&$item, $key) { +function fix_encoding(&$item, $key = null) { if (is_array($item)) { array_walk($item, 'fix_encoding'); } elseif (preg_match('/[\x80-\x9f]/', $item)) { diff --git a/classes/platalpage.php b/classes/platalpage.php index 1c91502..26f1ee6 100644 --- a/classes/platalpage.php +++ b/classes/platalpage.php @@ -304,6 +304,8 @@ function _hide_email($source) function hide_emails($source, &$smarty) { + fix_encoding($source); + //prevent email replacement in