...
This commit is contained in:
parent
42dcecde14
commit
b282464604
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ def __call__(self, data: bytes, is_last: bool = False) -> bytes:
|
|||
|
||||
|
||||
def resolve_name(name: str, base: str) -> Optional[str]:
|
||||
if name.startswith('/'):
|
||||
if name.startswith('/') or os.path.isabs(name):
|
||||
return None
|
||||
base = os.path.abspath(base)
|
||||
q = os.path.abspath(os.path.join(base, name))
|
||||
|
|
|
|||
Loading…
Reference in a new issue