mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
v0.10.15
This commit is contained in:
parent
27a03510c5
commit
c3e4d65b80
|
@ -1,8 +1,8 @@
|
||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
VERSION = (0, 10, 14)
|
VERSION = (0, 10, 15)
|
||||||
CODENAME = "zip it"
|
CODENAME = "zip it"
|
||||||
BUILD_DT = (2021, 4, 21)
|
BUILD_DT = (2021, 4, 24)
|
||||||
|
|
||||||
S_VERSION = ".".join(map(str, VERSION))
|
S_VERSION = ".".join(map(str, VERSION))
|
||||||
S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)
|
S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)
|
||||||
|
|
|
@ -1381,6 +1381,9 @@ class HttpCli(object):
|
||||||
if is_ls:
|
if is_ls:
|
||||||
raise Pebkac(403)
|
raise Pebkac(403)
|
||||||
|
|
||||||
|
if not os.path.isdir(fsenc(abspath)):
|
||||||
|
raise Pebkac(404)
|
||||||
|
|
||||||
html = self.j2(tpl, **j2a)
|
html = self.j2(tpl, **j2a)
|
||||||
self.reply(html.encode("utf-8", "replace"))
|
self.reply(html.encode("utf-8", "replace"))
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue