python3-django: (v2.2.28) fix ipv6 validation

This patch is only for python3-django_2.2.28.

The URL validator didn't detect invalid IPv6 addresses, treating them
as correct ones, making a testcase fail. (Also, according to the comment,
it could also crash in some cases, though I haven't encountered that)

This backported patch mitigates this behavior.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Gyorgy Sarvari
2026-01-15 09:29:12 +01:00
parent 5e11a2eba7
commit 4b5afd0ea7
2 changed files with 58 additions and 0 deletions
@@ -38,6 +38,7 @@ SRC_URI += "file://CVE-2023-31047.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 \
file://0001-Fixed-33367-Fixed-URLValidator-crash-in-some-edge-ca.patch \
"
SRC_URI[sha256sum] = "0200b657afbf1bc08003845ddda053c7641b9b24951e52acd51f6abda33a7413"