python3-django: fix hostname length validation in URLvalidator

This patch is for python3-django_2.2.28

The hostname's length has been incorrectly validated, it was checking
an incorrect section of the URL, this made a testcase fail.
This backported patch mitigates this issue.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Gyorgy Sarvari
2026-01-15 09:29:11 +01:00
parent 6d3dcbce79
commit 5e11a2eba7
2 changed files with 31 additions and 0 deletions
@@ -37,6 +37,7 @@ SRC_URI += "file://CVE-2023-31047.patch \
file://0001-Fixed-35172-Fixed-intcomma-for-string-floats.patch \
file://0001-implement-group-method-for-FakeMatch.patch \
file://0001-fix-ipv6-test.patch \
file://0001-Fixed-32298-Fixed-URLValidator-hostname-length-valid.patch \
"
SRC_URI[sha256sum] = "0200b657afbf1bc08003845ddda053c7641b9b24951e52acd51f6abda33a7413"