<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/forms_tests/field_tests/test_urlfield.py, branch main</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=main</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2026-03-03T20:40:38Z</updated>
<entry>
<title>Fixed #36923 -- Added tests for non-hierarchical URI schemes in URLField.to_python().</title>
<updated>2026-03-03T20:40:38Z</updated>
<author>
<name>Natalia</name>
<email>124304+nessita@users.noreply.github.com</email>
</author>
<published>2026-03-03T15:31:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=4b6c998301fedec279ec97b6547e67c3e88b7ff0'/>
<id>urn:sha1:4b6c998301fedec279ec97b6547e67c3e88b7ff0</id>
<content type='text'>
Follow up to 951ffb3832cd83ba672c1e3deae2bda128eb9cca.
</content>
</entry>
<entry>
<title>Fixed CVE-2026-25673 -- Simplified URLField scheme detection.</title>
<updated>2026-03-03T12:08:46Z</updated>
<author>
<name>Natalia</name>
<email>124304+nessita@users.noreply.github.com</email>
</author>
<published>2026-01-30T01:52:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=951ffb3832cd83ba672c1e3deae2bda128eb9cca'/>
<id>urn:sha1:951ffb3832cd83ba672c1e3deae2bda128eb9cca</id>
<content type='text'>
This simplicaftion mitigates a potential DoS in URLField on Windows. The
usage of `urlsplit()` in `URLField.to_python()` was replaced with
`str.partition(":")` for URL scheme detection. On Windows, `urlsplit()`
performs Unicode normalization which is slow for certain characters,
making `URLField` vulnerable to DoS via specially crafted POST payloads.

Thanks Seokchan Yoon for the report, and Jake Howard and Shai Berger
for the review.

Refs #36923.

Co-authored-by: Jacob Walls &lt;jacobtylerwalls@gmail.com&gt;
</content>
</entry>
<entry>
<title>Refs #34380 -- Changed the URLField default scheme to https and removed FORMS_URLFIELD_ASSUME_HTTPS per deprecation timeline.</title>
<updated>2025-01-15T21:28:37Z</updated>
<author>
<name>Sarah Boyce</name>
<email>42296566+sarahboyce@users.noreply.github.com</email>
</author>
<published>2024-12-12T16:39:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9a3f86e96009c1137b286f6d579b9d812a0dee69'/>
<id>urn:sha1:9a3f86e96009c1137b286f6d579b9d812a0dee69</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly.</title>
<updated>2024-08-28T14:44:05Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2024-08-09T17:03:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=57307bbc7d88927989cf5b314f16d6e13ade04e6'/>
<id>urn:sha1:57307bbc7d88927989cf5b314f16d6e13ade04e6</id>
<content type='text'>
Over the years we've had multiple instances of hit and misses when
emitting warnings: either setting the wrong stacklevel or not setting
it at all.

This work adds assertions for the existing warnings that were declaring
the correct stacklevel, but were lacking tests for it.
</content>
</entry>
<entry>
<title>Refs #34380 -- Added FORMS_URLFIELD_ASSUME_HTTPS transitional setting.</title>
<updated>2023-11-28T19:04:21Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2023-11-28T19:04:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=a4931cd75a1780923b02e43475ba5447df3adb31'/>
<id>urn:sha1:a4931cd75a1780923b02e43475ba5447df3adb31</id>
<content type='text'>
This allows early adoption of the new default "https".</content>
</entry>
<entry>
<title>Refs #34986 -- Fixed some test assertions for PyPy.</title>
<updated>2023-11-28T05:19:38Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2023-11-21T15:11:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=baf705f34a8c8977d042ce43c71f508f9ca4f8ce'/>
<id>urn:sha1:baf705f34a8c8977d042ce43c71f508f9ca4f8ce</id>
<content type='text'>
These failures were due to minor inconsistencies or implementation
differences between CPython and PyPy.
</content>
</entry>
<entry>
<title>Fixed #34380 -- Allowed specifying a default URL scheme in forms.URLField.</title>
<updated>2023-04-28T04:58:10Z</updated>
<author>
<name>Coen van der Kamp</name>
<email>coen@fourdigits.nl</email>
</author>
<published>2023-03-08T19:12:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7bbbadc69383f0a2b99253e153b974f8783e876d'/>
<id>urn:sha1:7bbbadc69383f0a2b99253e153b974f8783e876d</id>
<content type='text'>
This also deprecates "http" as the default scheme.
</content>
</entry>
<entry>
<title>Refs #33476 -- Reformatted code with Black.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2022-02-03T19:24:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9c19aff7c7561e3a82978a272ecdaad40dda5c00'/>
<id>urn:sha1:9c19aff7c7561e3a82978a272ecdaad40dda5c00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #33367 -- Fixed URLValidator crash in some edge cases.</title>
<updated>2021-12-20T06:30:22Z</updated>
<author>
<name>mendespedro</name>
<email>windowsxpedro@gmail.com</email>
</author>
<published>2021-12-15T14:55:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=e8b4feddc34ffe5759ec21da8fa027e86e653f1c'/>
<id>urn:sha1:e8b4feddc34ffe5759ec21da8fa027e86e653f1c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Used subTest() in forms.URLField() tests.</title>
<updated>2021-12-16T05:35:44Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2021-12-16T05:35:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=882647a82cebb97cd786a08c013714cfea9c1aed'/>
<id>urn:sha1:882647a82cebb97cd786a08c013714cfea9c1aed</id>
<content type='text'>
</content>
</entry>
</feed>
