Package: squirrelmail
Version: 2:1.4.23~svn20120406-2
Followup-For: Bug #680458

I ran into this issue recently when upgrading to wheezy.
Single byte encoded headers are not decoded correctly
and not shown on message list.

The fix by Michael Tuschik helps me, but it should be updated
to current package version. So, I attach the modified patch here.
It also could be added on top of debian/patches stack.
--- a/functions/strings.php
+++ b/functions/strings.php
@@ -1504,8 +1504,10 @@
       $encoding = $default_charset;
    }
 
-   if (check_php_version(5, 2, 3))
-      return htmlspecialchars($string, $flags, $encoding, $double_encode);
+   if (check_php_version(5, 2, 3)) {
+      return htmlspecialchars($string, ENT_COMPAT|ENT_HTML401, 'ISO-8859-1', $double_encode);
+      //return htmlspecialchars($string, $flags, $encoding, $double_encode);
+   }
 
    return htmlspecialchars($string, $flags, $encoding);
 }

Reply via email to