WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
14754
URL Encoding stripped for space characters
https://bugs.webkit.org/show_bug.cgi?id=14754
Summary
URL Encoding stripped for space characters
Gibbons Burke
Reported
2007-07-24 13:00:35 PDT
If I use the "Mail Link to This Page..." command on the URL above it unencodes the URL so that the occurrences of "%20" are transformed into actual space characters. This works ok in the original html email format because it also turns it into a link, but if I send this to a mailing list which turns it into plain text, the spaces break the URL up and it no longer works well as a link in many email clients. I have a javascript bookmark in my Safari bookmark bar which does what the "Mail Link to this Page..." command does, but is different: It encloses the URL within angle braces as a way of telling some email clients that the URL, if it spans lines should be considered one line of text. Here's the javascript: javascript:location.href='mailto:?SUBJECT='+document.title+%20'&BODY='+document.title+'%5Cn%3C'+escape(location.href)+'%3E' This script has the same problem - the URL-coded space characters are turned into spaces and the URL doesn't work when the mail, if it is sent in plain text, at the receiver's end.
Attachments
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2007-07-24 21:04:43 PDT
How to other browser behave, e.g., MSIE 6/7, Firefox 2.0.0.x, or Opera 9.21?
Alexey Proskuryakov
Comment 2
2007-07-24 21:57:52 PDT
See also:
bug 14555
,
bug 11740
,
bug 13146
.
Alexey Proskuryakov
Comment 3
2007-12-30 15:51:32 PST
This is not a WebKit or even a Safari issue, as we send an unencoded URL to the mail client. This should be reported against Mail.app in Radar. Below is a dump of an Apple event received by Mail.app from Safari. AE2000 (57492): Received an event: ------oo start of event oo------ { 1 } 'aevt': mail/mllk (i386){ return id: 0 (0x0) transaction id: 0 (0x0) interaction level: 112 (0x70) reply required: 1 (0x1) remote: 0 (0x0) for recording: 0 (0x0) reply port: 36635 (0x8f1b) target: { 1 } 'psn ': 8 bytes { { 0x0, 0x3c03c0 } (Safari) } fEventSourcePSN: { 0x0,0x3c03c0 } (Safari) optional attributes: < empty record > event data: { 1 } 'aevt': - 2 items { key '----' - { 1 } 'utxt': 604 bytes { "
http://a1135.g.akamai.net/f/1135/18227/1h/cchannel.download.akamai.com/18227/podcast/NEWORLEANS-LA/WRNO-FM/Rob%20&%20Henry.mp3?CPROG=PCAST&MARKET=NEWORLEANS-LA&NG_FORMAT=newstalk&SITE_ID=3632&STATION_ID=WRNO-FM&PCAST_AUTHOR=thenew995fm.com&PCAST_CAT=News_%26_Talk&PCAST_TITLE=Rob_%26_Bo_Audio_On_Demand
" } key 'urln' - { 1 } 'utxt': 604 bytes { "
http://a1135.g.akamai.net/f/1135/18227/1h/cchannel.download.akamai.com/18227/podcast/NEWORLEANS-LA/WRNO-FM/Rob%20&%20Henry.mp3?CPROG=PCAST&MARKET=NEWORLEANS-LA&NG_FORMAT=newstalk&SITE_ID=3632&STATION_ID=WRNO-FM&PCAST_AUTHOR=thenew995fm.com&PCAST_CAT=News_%26_Talk&PCAST_TITLE=Rob_%26_Bo_Audio_On_Demand
" } } }
Robert Blaut
Comment 4
2008-07-28 13:40:15 PDT
(In reply to
comment #3
)
> This is not a WebKit or even a Safari issue, as we send an unencoded URL to the > mail client. This should be reported against Mail.app in Radar.
So we should close the report.
Alexey Proskuryakov
Comment 5
2008-07-28 14:24:11 PDT
<
rdar://problem/6106984
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug