Bug 22975

Summary: Incorrect application of URL encoding to phrase typed into URL bar
Product: WebKit Reporter: A Gardner <apgardner>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Minor CC: ap
Priority: P2    
Version: 525.x (Safari 3.2)   
Hardware: Mac   
OS: OS X 10.5   

Description A Gardner 2008-12-23 00:47:04 PST
If a single word is typed into the URL bar and the return key pressed, ".com" is appended to the word thus creating a legal domain name and everything is peachy.

If two words are typed into the URL bar and the return key is pressed, the space between them is URL encoded, then ".com" is appended to the ensuing string and things then get all pear-shaped when the DNS is passed a domain with an illegal "%" character within it.

This causes DNS errors which will confuse the user.

Either a hyphen should be substituted for the space, or the space stripped out before the ".com" is added and the URL sent to DNS. The domain name part of the URL should never have URL encoding applied to it.
Comment 1 Alexey Proskuryakov 2008-12-24 01:26:44 PST
Address bar behavior is part of Safari, not open source WebKit. Marking INVALID per our process, please file a bug via <http://bugreport.apple.com> for Apple engineers to investigate.