mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
...
This commit is contained in:
parent
42dcecde14
commit
b282464604
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class ZlibDecompressor:
|
|||
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue