Open Bug 126008 Opened 23 years ago Updated 2 years ago

HTML in vcard fields evaluated

Categories

(MailNews Core :: MIME, defect)

defect

Tracking

(Not tracked)

mozilla1.2alpha

People

(Reporter: BenB, Unassigned)

References

Details

Reproduction:
1. In 4.x,
   1. create a vcard for yourself with Title sat to "<i>Alert</i>"
   2. set the "attach vcard" pref
   3. send yourself a mail
2. In Mozilla, recieve the mail and view it.

Actual result:
You see "Alert" in italics

Expected result:
You see "<i>Alert</i>", not italics.

Additional Comments:
- You can do the same with <b>/bold
- vCards fields, are not HTML, I think. So, we render incorrectly.
- This is a loophole for bug 30888 / bug 108153, unless I add special guards
  there.

Suggested fix:
Run the field through the TXT->HTMl converter before adding them to the page
The same bug might be in the calendar converter.

Tetstcase vcard (126008.vcf, "text/x-vcard"):

begin:vcard 
n:Bucksch;Ben
x-mozilla-html:TRUE
url:http://www.bucksch.com
adr:;;;;;;
version:2.1
email;internet:ben@bucksch.com
title:<i>alert</i>
note;quoted-printable:some notes here...=0D=0A=0D=0ATrying to use <b>html</b>
x-mozilla-cpt:;0
fn:Ben Bucksch
end:vcard
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.2alpha
I recently received with a couple of GIFs in the vcard, along with a spec for a
background color of dark blue. The body of the e-mail was, as a result,
difficult to read. Had the sender used <body bgcolor="000000">, the text would
have been unreadable. Consider moving the target milestone. This would seem to
be a problem that should be addressed for the 1.0 branch.

Example vcard with balck background:
begin:vcard 
n:Wunder;Tim
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
title:<body bgcolor="000000">Title
fn:Tim Wunder
end:vcard

re-assign to sspitzer
Assignee: GotFrenchFries → sspitzer
Status: ASSIGNED → NEW
Product: MailNews → Core
sorry for the spam.  making bugzilla reflect reality as I'm not working on these bugs.  filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Filter on "Nobody_NScomTLD_20080620"
QA Contact: esther → mime
Product: Core → MailNews Core
Still seeing it as italics.

Thunderbird 52.0.1 (32-bit)
Windows 7 64-bit
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.