mirror of
https://github.com/9001/copyparty.git
synced 2026-03-24 17:13:01 +10:00
disallow uploading logues
This commit is contained in:
@@ -741,7 +741,9 @@ class HttpCli(object):
|
||||
|
||||
if p_file and not nullwrite:
|
||||
fdir = os.path.join(vfs.realpath, rem)
|
||||
fname = sanitize_fn(p_file)
|
||||
fname = sanitize_fn(
|
||||
p_file, bad=[".prologue.html", ".epilogue.html"]
|
||||
)
|
||||
|
||||
if not os.path.isdir(fsenc(fdir)):
|
||||
raise Pebkac(404, "that folder does not exist")
|
||||
|
||||
Reference in New Issue
Block a user