diff options
| author | Adam Zapletal <adamzap@gmail.com> | 2024-03-08 23:01:27 -0600 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-03-11 08:17:49 +0100 |
| commit | 7326513a8f5d4d4e0aeec28540f9451b939b1dda (patch) | |
| tree | 3afb73edc901ea7cbfed880c06f57c6d65c0d8ba /docs | |
| parent | e5ec11a84d6f3725220360e893050cb00403a22e (diff) | |
Fixed #25595 -- Doc'd that URLValidator rejects file:// URIs without a host.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/validators.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt index 789d47d935..fb69ec8d33 100644 --- a/docs/ref/validators.txt +++ b/docs/ref/validators.txt @@ -183,6 +183,12 @@ to, or in lieu of custom ``field.clean()`` methods. .. _valid URI schemes: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml + .. warning:: + + Values starting with ``file:///`` will not pass validation even + when the ``file`` scheme is provided. Valid values must contain a + host. + .. attribute:: max_length The maximum length of values that could be considered valid. Defaults |
