Open Bug 1066304 Opened 10 years ago Updated 2 years ago

URI encoding not correct for a string with a quoted % symbol

Categories

(Core :: Networking, defect, P3)

33 Branch
x86_64
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: franciscosantgon, Unassigned)

Details

(Whiteboard: [necko-backlog])

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Build ID: 20140908190852

Steps to reproduce:

Steps :

1-. On the address bar enter an RUL like this http://localhost/index.html?param1={"key":"%"}

2-. Then press enter.




Actual results:


URL will change to http://localhost/index.html?param1={%22append%22:%22%%22}

Note the % after between the two %22. It should have been %25

In a working URL, the result is "URIError: malformed URI sequence"




Expected results:

I would expect all characters to be encoded, including the quoted % symbol:  
http://localhost/index.html?param1={%22append%22:%22%25%22}
Component: Untriaged → Networking
Product: Firefox → Core
Whiteboard: [necko-backlog]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.