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 86baaef commit 5b1686cCopy full SHA for 5b1686c
1 file changed
sanic/mixins/routes.py
@@ -787,7 +787,7 @@ async def _static_request_handler(
787
file_path = file_path_raw.resolve()
788
if (
789
file_path < root_path and not file_path_raw.is_symlink()
790
- ) or file_path_raw.match("../**/*"):
+ ) or ".." in file_path_raw.parts:
791
error_logger.exception(
792
f"File not found: path={file_or_directory}, "
793
f"relative_url={__file_uri__}"
0 commit comments