charsetDecode / htmlspecialchar usage is a mess :-(
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Feb 2003 19:36:54 +0000 (19:36 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Feb 2003 19:36:54 +0000 (19:36 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4544 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index 4e2ac6c5407b1bd3a2e134a48ae8100de769bc8b..dd8ad9011be14b2916aba1ee64a6182be833a95e 100644 (file)
@@ -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);