Re: Blank message body on some replies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Tomas Kuliavas wrote:
> 
> 
> Queued Queuedington wrote:
>> 
>> Message details is able to read/save the message (and of course, I can
>> read the original.)
>> 
>> What's the best way to get it to you?  (I'm uncomfortable posting the
>> entire message publicly.)
>> 
> Problem is caused by PHP 5.4 change in htmlspecialchars defaults. In PHP
> 5.4 function switched from iso-8859-1 to utf-8, started testing text
> format and started freaking out on any malformed text. UTF-8 is multibyte
> character set with very strict formating rules. Any non utf8 text has very
> big chance of breaking utf-8 formating rules and SquirrelMail fed
> Windows-1252 text to that function.
> 
> Your sample test case has one :) non us-ascii symbol. You can't see it in
> message view as same PHP function cuts off whole chapter there. Sample
> email has additional chapter between 'I can understand that. ...' and 'I
> got concentrate from...' chapters.
> 
> Quick hack for compose is in http://pastebin.com/3RQCUEV4
> 
> Proper fix is a lot more complex as multiple places are affected by this
> PHP 5.4 change.
> -- 
> Tomas
> 

Thank you!  It hadn't occurred to me that I was [also] missing part of the
message in the message view, which also explains why I didn't realize there
were any non-ascii characters.

Thank you also for the fix, which seems to do the trick.

Is the "correct" thing to do, perhaps, converting everything to utf8 that's
received in a different character set?

Thank you also for the fix, which I'll implement and play with.
-- 
View this message in context: http://old.nabble.com/Blank-message-body-on-some-replies-tp34348279p34374517.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux