Skip to content
Myr

update helpers.send_from_directory docstring (#5599)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update helpers.send_from_directory docstring to match werkzeug.utils.send_from_directory docstring on the :param directory: line.

authored by David · committed by GitHub · parent 98ae718 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:src/flask/helpers.py+2 added-1 removed
545 unmodified lines
546 If the final path does not point to an existing regular file,547 raises a 404 :exc:`~werkzeug.exceptions.NotFound` error.548549 :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.552 :param path: The path to the file to send, relative to553 ``directory``.554 :param kwargs: Arguments to pass to :func:`send_file`.555
79 unmodified lines