Closed Bug 768836 Opened 13 years ago Closed 5 years ago

Cyrillic cookie values are being converted

Categories

(Core :: Networking: Cookies, defect, P5)

13 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: metalgrid, Unassigned)

Details

(Whiteboard: [necko-would-take])

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1 Build ID: 20120615233552 Steps to reproduce: Try to set a cookie value in cyrillic via javascript console or a script triggered from a push button Actual results: The cyrillic characters were transformed to letters/digits Expected results: The cookie should hold the cyrillic value unmodified.
Component: Untriaged → Networking: Cookies
Product: Firefox → Core
QA Contact: untriaged → networking.cookies
Please provide a testcase / public URL
Go to any site, open the developer console (Ctrl+Shift+K) and try these: document.cookie // Shows the current cookies document.cookie="my_cyr_cookie=тест" // Set a cookie with a cyrillic string as the value document.cookie // Print out the cookies again. You'll see that my_cyr_cookie's value is not "тест" but in fact B5AB. I was going to use a cookie to store the visitor's name but if it's Cyrillic it doesn't display correctly.
Whiteboard: [necko-would-take]
Priority: -- → P5

We support Cyrillic values for cookies.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.