1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #35627 -- Raised a LookupError rather than an unhandled ValueError in get_supported_language_variant().

LocaleMiddleware didn't handle the ValueError raised by
get_supported_language_variant() when language codes were
over 500 characters.

Regression in 9e9792228a.
This commit is contained in:
Lorenzo Peña
2024-07-23 12:06:29 +02:00
committed by Sarah Boyce
parent 2c024c9ac0
commit 0e94f292cd
6 changed files with 31 additions and 7 deletions

14
docs/releases/4.2.15.txt Normal file
View File

@@ -0,0 +1,14 @@
===========================
Django 4.2.15 release notes
===========================
*Expected August 6, 2024*
Django 4.2.15 fixes a regression in 4.2.14.
Bugfixes
========
* Fixed a regression in Django 4.2.14 that caused a crash in
``LocaleMiddleware`` when processing a language code over 500 characters
(:ticket:`35627`).