From a2446af5ed70964a8b346815798543c672bb1b87 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sat, 27 Jan 2007 17:53:38 +0000 Subject: [PATCH] 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 --- classes/env.php | 2 +- classes/platalpage.php | 2 ++ classes/plmailer.php | 4 +++- include/xorg.misc.inc.php | 5 ++++- templates/core/bug.tpl | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) 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