2018-02-04 13:10:08 +08:00
|
|
|
==========================
|
|
|
|
Django 2.0.3 release notes
|
|
|
|
==========================
|
|
|
|
|
2018-02-25 08:39:17 +08:00
|
|
|
*March 6, 2018*
|
2018-02-04 13:10:08 +08:00
|
|
|
|
2018-02-25 08:39:17 +08:00
|
|
|
Django 2.0.3 fixes two security issues and several bugs in 2.0.2. Also, the
|
|
|
|
latest string translations from Transifex are incorporated.
|
2018-02-04 13:10:08 +08:00
|
|
|
|
2018-02-25 00:30:11 +08:00
|
|
|
CVE-2018-7536: Denial-of-service possibility in ``urlize`` and ``urlizetrunc`` template filters
|
|
|
|
===============================================================================================
|
|
|
|
|
|
|
|
The ``django.utils.html.urlize()`` function was extremely slow to evaluate
|
|
|
|
certain inputs due to catastrophic backtracking vulnerabilities in two regular
|
|
|
|
expressions. The ``urlize()`` function is used to implement the ``urlize`` and
|
|
|
|
``urlizetrunc`` template filters, which were thus vulnerable.
|
|
|
|
|
|
|
|
The problematic regular expressions are replaced with parsing logic that
|
|
|
|
behaves similarly.
|
|
|
|
|
2018-02-04 13:10:08 +08:00
|
|
|
Bugfixes
|
|
|
|
========
|
|
|
|
|
2018-02-08 22:59:25 +08:00
|
|
|
* Fixed a regression that caused sliced ``QuerySet.distinct().order_by()``
|
|
|
|
followed by ``count()`` to crash (:ticket:`29108`).
|
2018-02-11 05:05:41 +08:00
|
|
|
|
|
|
|
* Prioritized the datetime and time input formats without ``%f`` for the Thai
|
|
|
|
locale to fix the admin time picker widget displaying "undefined"
|
|
|
|
(:ticket:`29109`).
|
2018-02-07 11:09:43 +08:00
|
|
|
|
|
|
|
* Fixed crash with ``QuerySet.order_by(Exists(...))`` (:ticket:`29118`).
|
2018-02-13 03:00:29 +08:00
|
|
|
|
|
|
|
* Made ``Q.deconstruct()`` deterministic with multiple keyword arguments
|
|
|
|
(:ticket:`29125`). You may need to modify ``Q``'s in existing migrations, or
|
|
|
|
accept an autogenerated migration.
|
2018-03-01 01:05:23 +08:00
|
|
|
|
|
|
|
* Fixed a regression where a ``When()`` expression with a list argument crashes
|
|
|
|
(:ticket:`29166`).
|
2018-03-01 15:55:05 +08:00
|
|
|
|
|
|
|
* Fixed crash when using a ``Window()`` expression in a subquery
|
|
|
|
(:ticket:`29172`).
|
2018-03-01 22:26:40 +08:00
|
|
|
|
|
|
|
* Fixed ``AbstractBaseUser.normalize_username()`` crash if the ``username``
|
|
|
|
argument isn't a string (:ticket:`29176`).
|