Skip to content

Commit 6c44dd4

Browse files
authored
update helpers.send_from_directory docstring (#5599)
Update helpers.send_from_directory docstring to match werkzeug.utils.send_from_directory docstring on the :param directory: line.
1 parent 98ae718 commit 6c44dd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/flask/helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,8 @@ def download_file(name):
547547
raises a 404 :exc:`~werkzeug.exceptions.NotFound` error.
548548
549549
:param directory: The directory that ``path`` must be located under,
550-
relative to the current application's root path.
550+
relative to the current application's root path. This *must not*
551+
be a value provided by the client, otherwise it becomes insecure.
551552
:param path: The path to the file to send, relative to
552553
``directory``.
553554
:param kwargs: Arguments to pass to :func:`send_file`.

0 commit comments

Comments
 (0)