Skip to content

Commit

Permalink
Fixed #25595 -- Doc'd that URLValidator rejects file:// URIs without …
Browse files Browse the repository at this point in the history
…a host.
  • Loading branch information
adamzap authored and felixxm committed Mar 11, 2024
1 parent e5ec11a commit 7326513
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/ref/validators.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7326513

Please sign in to comment.