Fixed #31267 -- Added tests cases with empty username or password for URLValidator.

Follow up to cdcf4164be.
This commit is contained in:
Dennis Schwertel 2020-02-02 11:15:42 +01:00 committed by Mariusz Felisiak
parent 49275c5488
commit 4070d6ceb0
3 changed files with 10 additions and 2 deletions

View File

@ -247,6 +247,7 @@ answer newbie questions, and generally made Django that much better:
Davide Ceretti <dav.ceretti@gmail.com>
Deepak Thukral <deep.thukral@gmail.com>
Denis Kuzmichyov <kuzmichyov@gmail.com>
Dennis Schwertel <dennisschwertel@gmail.com>
Derek Willis <http://blog.thescoop.org/>
Deric Crago <deric.crago@gmail.com>
deric@monowerks.com

View File

@ -57,6 +57,9 @@ http://example.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.
http://example.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
http://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.aaaaaaaaaaaaaaaaaaaaaaaaa
https://test.[com
http://@example.com
http://:@example.com
http://:bar@example.com
http://foo@bar@example.com
http://foo/bar@example.com
http://foo:bar:baz@example.com

View File

@ -23,14 +23,18 @@ http://foo.com/blah_blah_(wikipedia)_(again)
http://www.example.com/wpstyle/?p=364
https://www.example.com/foo/?bar=baz&inga=42&quux
http://✪df.ws/123
http://userid:password@example.com:8080
http://userid:password@example.com:8080/
http://userid@example.com
http://userid@example.com/
http://userid@example.com:8080
http://userid@example.com:8080/
http://userid:@example.com
http://userid:@example.com/
http://userid:@example.com:8080
http://userid:@example.com:8080/
http://userid:password@example.com
http://userid:password@example.com/
http://userid:password@example.com:8080
http://userid:password@example.com:8080/
http://142.42.1.1/
http://142.42.1.1:8080/
http://➡.ws/䨹