mirror of
https://github.com/9001/copyparty.git
synced 2026-03-29 03:23:28 +10:00
make thumb-dir.txt unretrievable
This commit is contained in:
@@ -1561,7 +1561,9 @@ class HttpCli(object):
|
||||
raise Pebkac(404)
|
||||
|
||||
if self.readable:
|
||||
if rem.startswith(".hist/up2k."):
|
||||
if rem.startswith(".hist/up2k.") or (
|
||||
rem.endswith("/dir.txt") and rem.startswith(".hist/th/")
|
||||
):
|
||||
raise Pebkac(403)
|
||||
|
||||
is_dir = stat.S_ISDIR(st.st_mode)
|
||||
|
||||
Reference in New Issue
Block a user