Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#26744 closed Bug (fixed)

Accept-Language header parsing accepts some invalid q values

Reported by: Vytis Banaitis Owned by: Vytis Banaitis
Component: Internationalization Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Due to a typo in a regexp (an unescaped .), some invalid header values are accepted, such as en;q=1e0 and en;q=10000.
(q values must be fixed point floats between 0 and 1, with up to 3 decimal places.)

Change History (3)

comment:1 by Vytis Banaitis, 9 years ago

Has patch: set
Owner: changed from nobody to Vytis Banaitis
Status: newassigned

comment:2 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In f1b38842:

Fixed #26744 -- Fixed a typo in regex for Accept-Language header parsing.

comment:3 by Tim Graham, 9 years ago

Component: UtilitiesInternationalization
Note: See TracTickets for help on using tickets.
Back to Top