From 7326513a8f5d4d4e0aeec28540f9451b939b1dda Mon Sep 17 00:00:00 2001 From: Adam Zapletal Date: Fri, 8 Mar 2024 23:01:27 -0600 Subject: [PATCH] Fixed #25595 -- Doc'd that URLValidator rejects file:// URIs without a host. --- docs/ref/validators.txt | 6 ++++++ 1 file changed, 6 insertions(+) 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