Alessandro Vesely writes:

One of my users complains about some messages being badly displayed.
The one I saw is an horrible xhtml wannabee where MS Word managed to
stuff 186 errors in 7 lines of text.  Nevertheless, the sender said
their messages are displayed acceptably by major webmail sites.

In facts, a snippet like

  all&#8217;<strong><b><font face="Times New Roman">ASSEMBLEA

is rendered like

  all’< >< >< >ASSEMBLEA

with varying amounts of whitespace between one '<' and the
corresponding '>'.  I'm not sure how that should be handled, although
eliminating the '<'s and '>'s would probably be an improvement.
Anyway, I had no luck browsing webmail sources in an attempt to locate
what I could patch.  Any hint?

It's probably some other tag or attribute that getting edited out here. The above tags are ok, and should be rendered fine, or there's some other formatting error in the nearby html.

sqwebmail does some aggressive sanitizing in order to block potential XSS attempts. I don't have the time to keep track exactly how various browsers handle malformed html. If something looks wrong, it gets nuked.

This is not just a blacklist of selected HTML elements and attributes. Stuff like suspicious syntax, malformed tags with bad quoting, huge tags. This could be anything, here.

Attachment: pgpMraCnCMkeX.pgp
Description: PGP signature

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to