[Django] #26744: Accept-Language header parsing accepts some invalid q values

2 views
Skip to first unread message

Django

unread,
Jun 10, 2016, 4:15:11 PM6/10/16
to django-...@googlegroups.com
#26744: Accept-Language header parsing accepts some invalid q values
----------------------------+--------------------
Reporter: vytisb | Owner: nobody
Type: Bug | Status: new
Component: Utilities | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
----------------------------+--------------------
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.)

--
Ticket URL: <https://code.djangoproject.com/ticket/26744>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 10, 2016, 4:19:25 PM6/10/16
to django-...@googlegroups.com
#26744: Accept-Language header parsing accepts some invalid q values
---------------------------+--------------------------------------
Reporter: vytisb | Owner: vytisb
Type: Bug | Status: assigned
Component: Utilities | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
---------------------------+--------------------------------------
Changes (by vytisb):

* status: new => assigned
* needs_better_patch: => 0
* needs_tests: => 0
* owner: nobody => vytisb
* needs_docs: => 0
* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/6757 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/26744#comment:1>

Django

unread,
Jun 11, 2016, 9:33:07 PM6/11/16
to django-...@googlegroups.com
#26744: Accept-Language header parsing accepts some invalid q values
---------------------------+--------------------------------------
Reporter: vytisb | Owner: vytisb
Type: Bug | Status: closed
Component: Utilities | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
---------------------------+--------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"f1b38842afc50a51b7e6d180ddebbf7c48067e46" f1b38842]:
{{{
#!CommitTicketReference repository=""
revision="f1b38842afc50a51b7e6d180ddebbf7c48067e46"
Fixed #26744 -- Fixed a typo in regex for Accept-Language header parsing.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26744#comment:2>

Django

unread,
Jun 11, 2016, 9:36:35 PM6/11/16
to django-...@googlegroups.com
#26744: Accept-Language header parsing accepts some invalid q values
-------------------------------------+-------------------------------------

Reporter: vytisb | Owner: vytisb
Type: Bug | Status: closed
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Unreviewed

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* component: Utilities => Internationalization


--
Ticket URL: <https://code.djangoproject.com/ticket/26744#comment:3>

Reply all
Reply to author
Forward
0 new messages