mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
limit gz/br unpacker to embedded resources
This commit is contained in:
parent
a039fae1a4
commit
12d25d09b2
|
@ -797,6 +797,8 @@ class HttpCli(object):
|
|||
editions[ext or "plain"] = [fs_path, st.st_size]
|
||||
except:
|
||||
pass
|
||||
if not self.vpath.startswith(".cpr/"):
|
||||
break
|
||||
|
||||
if not editions:
|
||||
raise Pebkac(404)
|
||||
|
|
Loading…
Reference in a new issue