<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/validators/tests.py, branch 4.1.10</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=4.1.10</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=4.1.10'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2023-07-03T06:27:05Z</updated>
<entry>
<title>[4.1.x] Fixed CVE-2023-36053 -- Prevented potential ReDoS in EmailValidator and URLValidator.</title>
<updated>2023-07-03T06:27:05Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2023-06-14T10:23:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=beb3f3d55940d9aa7198bf9d424ab74e873aec3d'/>
<id>urn:sha1:beb3f3d55940d9aa7198bf9d424ab74e873aec3d</id>
<content type='text'>
Thanks Seokchan Yoon for reports.
</content>
</entry>
<entry>
<title>Fixed #32559 -- Added 'step_size’ to numeric form fields.</title>
<updated>2022-05-12T12:16:52Z</updated>
<author>
<name>Kapil Bansal</name>
<email>kapilbansal.gbpecdelhi@gmail.com</email>
</author>
<published>2022-05-12T09:30:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=3a82b5f655446f0ca89e3b6a92b100aa458f348f'/>
<id>urn:sha1:3a82b5f655446f0ca89e3b6a92b100aa458f348f</id>
<content type='text'>
Co-authored-by: Jacob Rief &lt;jacob.rief@uibk.ac.at&gt;
</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>Refs #33476 -- Refactored problematic code before reformatting by Black.</title>
<updated>2022-02-03T10:20:46Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2022-02-03T10:20:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=c5cd8783825b5f6384417dac5f3889b4210b7d08'/>
<id>urn:sha1:c5cd8783825b5f6384417dac5f3889b4210b7d08</id>
<content type='text'>
In these cases Black produces unexpected results, e.g.

def make_random_password(
    self,
    length=10,
    allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789',
):

or

cursor.execute("""
SELECT ...
""",
    [table name],
)</content>
</entry>
<entry>
<title>Refs #31670 -- Removed whitelist argument and domain_whitelist attribute in EmailValidator per deprecation timeline.</title>
<updated>2021-09-20T19:23:01Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2021-09-16T06:53:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=d25710a625fbb6dbb047c159417f796102fd721a'/>
<id>urn:sha1:d25710a625fbb6dbb047c159417f796102fd721a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #22123 -- Added more URLValidator test for invalid IPv6 literals.</title>
<updated>2021-08-06T10:58:55Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2021-08-06T08:58:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=61d92c650f5bc363177ebace62e3e8a67ec9499d'/>
<id>urn:sha1:61d92c650f5bc363177ebace62e3e8a67ec9499d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #32959 -- Moved tests URLs to validators.tests.</title>
<updated>2021-07-28T09:39:36Z</updated>
<author>
<name>chrishna1</name>
<email>adjnct@gmail.com</email>
</author>
<published>2021-07-27T20:17:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=033636286a7e1507e5471b653b074c1981738110'/>
<id>urn:sha1:033636286a7e1507e5471b653b074c1981738110</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed CVE-2021-33571 -- Prevented leading zeros in IPv4 addresses.</title>
<updated>2021-06-02T08:58:39Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2021-05-24T07:55:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=e1d787f1b36d13b95187f8f425425ae1b98da188'/>
<id>urn:sha1:e1d787f1b36d13b95187f8f425425ae1b98da188</id>
<content type='text'>
validate_ipv4_address() was affected only on Python &lt; 3.9.5, see [1].
URLValidator() uses a regular expressions and it was affected on all
Python versions.

[1] https://bugs.python.org/issue36384
</content>
</entry>
<entry>
<title>Fixed #32713, Fixed CVE-2021-32052 -- Prevented newlines and tabs from being accepted in URLValidator on Python 3.9.5+.</title>
<updated>2021-05-06T06:45:23Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2021-05-06T06:45:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=e1e81aa1c4427411e3c68facdd761229ffea6f6f'/>
<id>urn:sha1:e1e81aa1c4427411e3c68facdd761229ffea6f6f</id>
<content type='text'>
In Python 3.9.5+ urllib.parse() automatically removes ASCII newlines
and tabs from URLs [1, 2]. Unfortunately it created an issue in
the URLValidator. URLValidator uses urllib.urlsplit() and
urllib.urlunsplit() for creating a URL variant with Punycode which no
longer contains newlines and tabs in Python 3.9.5+. As a consequence,
the regular expression matched the URL (without unsafe characters) and
the source value (with unsafe characters) was considered valid.

[1] https://bugs.python.org/issue43882 and
[2] https://github.com/python/cpython/commit/76cd81d60310d65d01f9d7b48a8985d8ab89c8b4</content>
</entry>
<entry>
<title>Fixed typo in DecimalValidator tests.</title>
<updated>2020-07-16T09:21:39Z</updated>
<author>
<name>Claudio Catterina</name>
<email>catterina.claudio@gmail.com</email>
</author>
<published>2020-07-16T09:21:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=faa6d41cdacfa3910ea2bb9278d1c9a4366cb9b4'/>
<id>urn:sha1:faa6d41cdacfa3910ea2bb9278d1c9a4366cb9b4</id>
<content type='text'>
This replaces redundant test for -Infinity with +Infinity.</content>
</entry>
</feed>
