Skip to content

Commit

Permalink
update helpers.send_from_directory docstring (#5599)
Browse files Browse the repository at this point in the history
Update helpers.send_from_directory docstring to match werkzeug.utils.send_from_directory docstring on the :param directory: line.
  • Loading branch information
CheeseCake87 authored Nov 6, 2024
1 parent 98ae718 commit 6c44dd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/flask/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,8 @@ def download_file(name):
raises a 404 :exc:`~werkzeug.exceptions.NotFound` error.
:param directory: The directory that ``path`` must be located under,
relative to the current application's root path.
relative to the current application's root path. This *must not*
be a value provided by the client, otherwise it becomes insecure.
:param path: The path to the file to send, relative to
``directory``.
:param kwargs: Arguments to pass to :func:`send_file`.
Expand Down

0 comments on commit 6c44dd4

Please sign in to comment.