mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix static mounts using relative paths and prevent traversal exploits (#554)
Thanks, @abdusco! Closes #555
This commit is contained in:
parent
9ca860e54f
commit
74ecf8a7cc
3 changed files with 9 additions and 2 deletions
|
|
@ -67,6 +67,8 @@ def test_static_mounts():
|
|||
assert response.status == 200
|
||||
response = client.get("/custom-static/not_exists.py")
|
||||
assert response.status == 404
|
||||
response = client.get("/custom-static/../LICENSE")
|
||||
assert response.status == 404
|
||||
|
||||
|
||||
def test_memory_database_page():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue