Closed Bug 135984 Opened 24 years ago Closed 24 years ago

mailto: URL with %20 in it screws up "to" field

Categories

(MailNews Core :: Networking, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: john, Assigned: antonio.xu)

References

()

Details

(Keywords: fixedOEM)

Attachments

(2 files, 1 obsolete file)

STEPS TO REPRODUCE: 1. Type "mailto:a@b.com?to=c@d.com&body=a%20b" into the URL bar or click the testcase URL. EXPECTED RESULTS: Two "To:" lines showing a@b.com and c@d.com ACTUAL RESULTS: One "To:" line showing: ""a\"@b.comc@d.com Note that mailto:a@b.com?body=a%20b and mailto:a@b.com?cc=y@y.com&cc=z@z.com&body=a%20b both work, so it appears to be specific to "To:".
hi mscott could you assign this bug to me?
please assign this bug to me, i'm sure i can fix it.
Hi Mscott,this is my fix for this bug,i know you are so busy,could you rv my patch?Thank you.
Somebody can rv my patch.
my fix is only swich some lines,it is because when ParseMailtoUrl(NS_CONST_CAST(char*, searchPart.get())); run ,it will parse mailtourl object,if the url have "to",it will append a "," and a mail address to m_topart,but now m_topart did not been cut some redundant words,for example error is m_toPart = ss@ss.com?to=ssds@as.com&body=sd ParseMailtoUrl(NS_CONST_CAST(char*, searchPart.get())); finish m_toPart = ss@ss.com?to=ssds@as.com&body=sd,ssds@as.com m_toPart.Cut(startOfSearchPart, numExtraChars); run it will have some error!because now m_toPart had been appended some words.
Comment on attachment 78316 [details] [diff] [review] this is a new patch for this bug,please rv my patch Looks fine to me. R=ducarroz
Attachment #78316 - Flags: review+
Who can super rv my patch?Thank you.
we'll end up with: m_toPart.Cut(startOfSearchPart, numExtraChars); // now we need to strip off the search part from the // to part.... ParseMailtoUrl(NS_CONST_CAST(char*, searchPart.get())); is the comment now in the wrong place?
Thanks for Sspitzer's advice,i had changed the comment place,please rv my patch.Thank you
Attachment #78316 - Attachment is obsolete: true
I think what Seth meant is that the comment : // now we need to strip off the search part from the // to part.... should be before the line that does what the comment says, which I believe is m_toPart.Cut(startOfSearchPart, numExtraChars); so, it should look like this: // now we need to strip off the search part from the // to part.... m_toPart.Cut(startOfSearchPart, numExtraChars); ParseMailtoUrl(NS_CONST_CAST(char*, searchPart.get()));
please give me super rv ,thank you,it is really long time.
sr=sspitzer
Assignee: mscott → antonio.xu
fix landed on trunk. thanks to antonio.xu@sun.com for the fix. sorry for the delay, we've been busy with RC1.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
thanks for your help!
Whiteboard: branchOEM
Whiteboard: branchOEM → branchOEM+
Attachment #81097 - Flags: superreview+
Attachment #81097 - Flags: review+
patch checked in NETSCAPE_7_0_OEM_BRANCH
Whiteboard: branchOEM+ → branchOEM+ fixedOEM
Keywords: fixedOEM
Whiteboard: branchOEM+ fixedOEM
*** Bug 180397 has been marked as a duplicate of this bug. ***
QA Contact: huang → gchan
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: