Re: No Subject = No Ability To Read?

ST66 <[email protected]> Tue, 11 Jun 2013 12:21:57 -0700 (PDT)
Newsgroups gmane.mail.squirrelmail.devel
Message-ID <[email protected]>
I found reason for this error and have a fix.

http://php.net/manual/en/function.htmlspecialchars.php
have different default values from PHP 5.4.0 and  forward, before PHP 5.4.0
default encoding was ISO-8859-1, now it is UTF-8.

SquirrelMail does not pass incoming charset to this function, instead it
uses default.
So in a setup where you with SquirrelMail use UTF-8, incoming email encoded
ISO-8859-1 will be translated wrong.

To get it working correct I have change 1 line in
/usr/share/squirrelmail/functions/i18n.php
In "function charset_decode" change
   if (! $save_html) $string = sm_encode_html_special_chars ($string);
to
   if (! $save_html) $string = sm_encode_html_special_chars
($string,ENT_COMPAT | ENT_HTML401,$charset,true);





--
View this message in context: http://squirrelmail.5843.n7.nabble.com/No-Subject-No-Ability-To-Read-tp25132p25495.html
Sent from the squirrelmail-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel