Ticket #232 (closed defect: duplicate)

Opened 3 years ago

Last modified 2 months ago

Mail Viewer weirdness

Reported by: maia@… Owned by: rjl
Priority: normal Milestone: 1.1.0
Component: PHP scripts Version: 1.0.0 RC6
Severity: minor Keywords:
Cc:

Description

I've not seen this before, hopefully this isn't a duplicate ticket.

When viewing this particular email from the MrPostman?-developers list on Sourceforge, some of the email's text appears above the toolbar icons as shown below. Very peculiar.

Attachments

maia.png (101.4 kB) - added by maia@… 3 years ago.
The formatting weirdness
sf.email.txt (21.4 kB) - added by maia@… 3 years ago.
the email that caused the formatting oddness

Change History

Changed 3 years ago by maia@…

The formatting weirdness

Changed 3 years ago by maia@…

the email that caused the formatting oddness

Changed 3 years ago by maia@…

As shown in the text file, the contents of the email was pulled from the database with the command

select contents from maia_mail where id=418178;

Using Maia from SVN. If there's any more information needed, please let me know.

--

Ed

Changed 3 years ago by rjl

  • severity changed from normal to minor
  • milestone set to 1.0.0

The problem arises in this case because this "text/plain" message contains some HTML code being cited in the middle for illustration purposes. The <TD></TD> tag example they use is being interpreted by Maia's mail viewer as real HTML instructions.

The fix (and yes, this is a bug) would seem to be to examine the mail part's content-type, and only interpret HTML code inside blocks that are actually of type "text/html". For all other content types, any HTML entities should be proactively escaped (e.g. "&lt;" instead of "<", etc.).

Changed 3 years ago by dmorton

  • milestone changed from 1.0.0 to 1.1.0

Changed 2 months ago by rjl

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #26.

Note: See TracTickets for help on using tickets.