summaryrefslogtreecommitdiff
path: root/tests/validators
diff options
context:
space:
mode:
authorTim Bell <timothybell@gmail.com>2018-07-24 00:30:01 +1000
committerTim Graham <timograham@gmail.com>2018-07-23 10:30:01 -0400
commitcdcf4164bec9dc09465424d7042c3f9d4f0f1fdc (patch)
tree8c0f1aca7dc13225242d15e3f5615c578931a15f /tests/validators
parent5a017eef4ccf8c4818d85d3c8e7451998f921356 (diff)
downloaddjango-cdcf4164bec9dc09465424d7042c3f9d4f0f1fdc.tar.gz
Fixed #29528 -- Made URLValidator reject invalid characters in the username and password.
Diffstat (limited to 'tests/validators')
-rw-r--r--tests/validators/invalid_urls.txt6
-rw-r--r--tests/validators/valid_urls.txt2
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/validators/invalid_urls.txt b/tests/validators/invalid_urls.txt
index 04a0b5fb1b..4a092034ff 100644
--- a/tests/validators/invalid_urls.txt
+++ b/tests/validators/invalid_urls.txt
@@ -57,3 +57,9 @@ http://example.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.
http://example.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
http://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaa
https://test.[com
+http://foo@bar@example.com
+http://foo/bar@example.com
+http://foo:bar:baz@example.com
+http://foo:bar@baz@example.com
+http://foo:bar/baz@example.com
+http://invalid-.com/?m=foo@example.com
diff --git a/tests/validators/valid_urls.txt b/tests/validators/valid_urls.txt
index 4bc8c03059..f79f948142 100644
--- a/tests/validators/valid_urls.txt
+++ b/tests/validators/valid_urls.txt
@@ -48,7 +48,7 @@ http://foo.bar/?q=Test%20URL-encoded%20stuff
http://مثال.إختبار
http://例子.测试
http://उदाहरण.परीक्षा
-http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com
+http://-.~_!$&'()*+,;=%40:80%2f@example.com
http://xn--7sbb4ac0ad0be6cf.xn--p1ai
http://1337.net
http://a.b-c.de