forked from orbit-oss/flask
Whitespace normalization
This commit is contained in:
parent
1dd83964f0
commit
d8fcd4260e
2 changed files with 2 additions and 1 deletions
|
|
@ -390,7 +390,7 @@ def send_file(filename_or_fp, mimetype=None, as_attachment=False,
|
||||||
|
|
||||||
def safe_join(directory, filename):
|
def safe_join(directory, filename):
|
||||||
"""Safely join `directory` and `filename`.
|
"""Safely join `directory` and `filename`.
|
||||||
|
|
||||||
:param directory: the base directory.
|
:param directory: the base directory.
|
||||||
:param filename: the untrusted filename relative to that directory.
|
:param filename: the untrusted filename relative to that directory.
|
||||||
:raises: :class:`~werkzeug.exceptions.NotFound` if the retsulting path
|
:raises: :class:`~werkzeug.exceptions.NotFound` if the retsulting path
|
||||||
|
|
|
||||||
|
|
@ -642,6 +642,7 @@ class BasicFunctionalityTestCase(unittest.TestCase):
|
||||||
app.config.update(
|
app.config.update(
|
||||||
SERVER_NAME='localhost.localdomain:5000'
|
SERVER_NAME='localhost.localdomain:5000'
|
||||||
)
|
)
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue