Closed Bug 380352 Opened 18 years ago Closed 18 years ago

Operator does not decode url-encoded href attributes

Categories

(Mozilla Labs :: Operator, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: manas, Assigned: mkaply)

References

()

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Build Identifier: Operator 0.7 on Mozilla Firefox 2.0.0.3, Mac OS X 10.4.9 PPC I use a homegrown url encoder for converting email addresses to, e.g., <a href="mailto:%6D%61%6E%61%73%40%74%75%6E%67%61%72%65%2E%6E%61%6D%65"> mail me </a>. Operator detects an hCard and (upon clicking 'Export Contact') passes it to Address Book. Address Book shows the characters in their un-decoded form, instead of showing the correct decoded form. Clicking on the link directly within Firefox opens Mail.app correctly. Reproducible: Always Steps to Reproduce: 1. Encode an email address at: http://www.manastungare.com/projects/prevent-spam/ 2. Copy the link to a blank HTML page. 3. Using Operator, click on Export Contact in Firefox. 4. View email field of resulting entry in Address Book. Actual Results: %6D%61%6E%61%73%40%74%75%6E%67%61%72%65%2E%6E%61%6D%65 Expected Results: manas@tungare.name
Attached patch Fix for problemSplinter Review
unescape the mailto
fix checked in. thanks!
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: