summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Zapletal <adamzap@gmail.com>2024-03-08 23:01:27 -0600
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-03-11 09:24:42 +0100
commit710ca576816fe90c15a7e62f95074ff0bbd77f0e (patch)
tree1c83901ef0137d51ec7baf0c6983ef7c49a35a9a
parentef23305a19c39b26bc25e2df68355743652e77ab (diff)
[5.0.x] Fixed #25595 -- Doc'd that URLValidator rejects file:// URIs without a host.
Backport of 7326513a8f5d4d4e0aeec28540f9451b939b1dda from main
-rw-r--r--docs/ref/validators.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt
index 8323b55909..ecb0daa96f 100644
--- a/docs/ref/validators.txt
+++ b/docs/ref/validators.txt
@@ -188,6 +188,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
.. versionadded:: 3.2.20