From 12d25d09b2c2e10faa45e31de04f68dbebecae7e Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 3 Feb 2021 00:19:14 +0100 Subject: [PATCH] limit gz/br unpacker to embedded resources --- copyparty/httpcli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index a973282f..a78d87be 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -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)