We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98ae718 commit 6c44dd4Copy full SHA for 6c44dd4
src/flask/helpers.py
@@ -547,7 +547,8 @@ def download_file(name):
547
raises a 404 :exc:`~werkzeug.exceptions.NotFound` error.
548
549
:param directory: The directory that ``path`` must be located under,
550
- relative to the current application's root path.
+ relative to the current application's root path. This *must not*
551
+ be a value provided by the client, otherwise it becomes insecure.
552
:param path: The path to the file to send, relative to
553
``directory``.
554
:param kwargs: Arguments to pass to :func:`send_file`.
0 commit comments