From: stekkel Date: Mon, 24 Feb 2003 19:36:54 +0000 (+0000) Subject: charsetDecode / htmlspecialchar usage is a mess :-( X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d1b6176d7ee330ec08c65ff5b140d6bf694c548f;p=squirrelmail.git charsetDecode / htmlspecialchar usage is a mess :-( git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4544 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mime.php b/functions/mime.php index 4e2ac6c5..dd8ad901 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -271,6 +271,7 @@ function translateText(&$body, $wrap_at, $charset) { sqWordWrap($line, $wrap_at); } $line = charset_decode($charset, $line); + $line = htmlspecialchars($line); $line = str_replace("\t", ' ', $line); parseUrl ($line);