Bug 22104 - Javascript URL percent encoding/decoding broken by some characters
Summary: Javascript URL percent encoding/decoding broken by some characters
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Major
Assignee: Alexey Proskuryakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-06 10:04 PST by Alexey Proskuryakov
Modified: 2008-11-09 11:09 PST (History)
0 users

See Also:


Attachments
proposed fix (3.58 KB, patch)
2008-11-09 04:54 PST, Alexey Proskuryakov
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2008-11-06 10:04:15 PST
Steps to reproduce:
1) Open http://lleo.aha.ru/dnevnik/2008/10/13.html
2) Click on one of the blue asterisks in text (not the first one, though).

Results: An alert appears. It contains many U+FFFD replacement characters.

Works in Firefox.

The code is:
<a href='javascript:alert("<cyrillic letters>\n<more cyrillic letters>")'>*</a>

Document charset is windows-1251.
Comment 1 Alexey Proskuryakov 2008-11-09 04:54:58 PST
Created attachment 24999 [details]
proposed fix
Comment 2 Darin Adler 2008-11-09 07:21:07 PST
Comment on attachment 24999 [details]
proposed fix

r=me
Comment 3 Alexey Proskuryakov 2008-11-09 11:09:03 PST
Committed revision 38243.