This commit is contained in:
ed
2021-04-24 04:05:57 +02:00
parent 27a03510c5
commit c3e4d65b80
2 changed files with 5 additions and 2 deletions

View File

@@ -1381,6 +1381,9 @@ class HttpCli(object):
if is_ls:
raise Pebkac(403)
if not os.path.isdir(fsenc(abspath)):
raise Pebkac(404)
html = self.j2(tpl, **j2a)
self.reply(html.encode("utf-8", "replace"))
return True