Closed
Bug 639818
Opened 14 years ago
Closed 14 years ago
Wrong language is accepted from Accept-Language
Categories
(support.mozilla.org :: General, defect, P3)
support.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
FIXED
2.7
People
(Reporter: jsocol, Assigned: jsocol)
Details
Consider the following Accept-Language header:
Accept-Language: en-gb, en;q=0.8, fr-fr;q=0.6, es;q=0.2
Which language is matched? Which one _should_ be matched?
Clearly, "en" should be matched and interpreted as "any English", sending the user to "en-US". However, in this case, "es" will be matched, the lowest priority.
This happens because right now we look for *complete* matches before looking for partial matches.
Assignee | ||
Comment 1•14 years ago
|
||
https://github.com/jsocol/kitsune/commit/a1c8afeec
To test: use the Accept-Language header above and verify that you end up on 'en-US' instead of 'es'.
Summary: Which language is accepted from Accept-Language → Wrong language is accepted from Accept-Language
Assignee | ||
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•