Fix traversals for intended results (#2728)

This commit is contained in:
Adam Hopkins
2023-07-09 09:21:39 +03:00
committed by GitHub
parent e374409567
commit 049983cb70
15 changed files with 41 additions and 2 deletions

View File

@@ -1 +1 @@
__version__ = "23.3.0"
__version__ = "23.3.1"

View File

@@ -95,7 +95,7 @@ class StaticMixin(BaseMixin, metaclass=SanicMeta):
)
try:
file_or_directory = Path(file_or_directory)
file_or_directory = Path(file_or_directory).resolve()
except TypeError:
raise TypeError(
"Static file or directory must be a path-like object or string"