Bug 22616 - KUrl/QUrl issue
Summary: KUrl/QUrl issue
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Adam Treat
URL: http://groupexpert.ru/testya.html
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-02 19:45 PST by Benjamin Meyer
Modified: 2009-01-12 10:55 PST (History)
0 users

See Also:


Attachments
Proposed fix (255 bytes, patch)
2009-01-10 20:52 PST, Adam Treat
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Meyer 2008-12-02 19:45:00 PST
Reported on the Arora bug tracker when browsing to the webpage http://groupexpert.ru/testya.html the behavior is different then seen on other browsers.  I have confirmed that it works in Safari, but not Arora.

A patch is included that fixes the issue.

http://code.google.com/p/arora/issues/detail?id=226
Comment 1 Adam Treat 2009-01-10 20:52:20 PST
Created attachment 26598 [details]
Proposed fix
Comment 2 Adam Treat 2009-01-12 10:55:14 PST
There were two problems with this:

1) QUrl::fromEncoding had a bug in the TolerantMode parsing.  That has been fixed and will be included in tonight's Qt 4.5 snapshot.

2) The webpage in question does not need to use the 'escaped' function.  First, this function has been deprecated as it does not encode strictly.*  Second, no escaping needed to be done in the first place as the javascript engine would have encoded it properly anyways.

*https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Predefined_Functions/escape_and_unescape_Functions

Cheers,
Adam