Operator does not decode url-encoded href attributes

RESOLVED FIXED

Status

Mozilla Labs
Operator
RESOLVED FIXED
11 years ago
11 years ago

People

(Reporter: Manas Tungare, Assigned: mkaply)

Tracking

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

11 years ago
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
(Assignee)

Comment 1

11 years ago
Created attachment 264478 [details] [diff] [review]
Fix for problem

unescape the mailto
(Assignee)

Comment 2

11 years ago
fix checked in. thanks!
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.