[Webkit-unassigned] [Bug 14754] New: URL Encoding stripped for space characters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 24 13:00:36 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14754

           Summary: URL Encoding stripped for space characters
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
               URL: http://a1135.g.akamai.net/f/1135/18227/1h/cchannel.downl
                    oad.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
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: gibbonsb at mac.com


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.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list