From c3e4d65b8077b59794f2948e6674208ef2280892 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 24 Apr 2021 04:05:57 +0200 Subject: [PATCH] v0.10.15 --- copyparty/__version__.py | 4 ++-- copyparty/httpcli.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/copyparty/__version__.py b/copyparty/__version__.py index bd417bd6..3dc8bda5 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,8 +1,8 @@ # coding: utf-8 -VERSION = (0, 10, 14) +VERSION = (0, 10, 15) CODENAME = "zip it" -BUILD_DT = (2021, 4, 21) +BUILD_DT = (2021, 4, 24) S_VERSION = ".".join(map(str, VERSION)) S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 5e9ebbea..7eae76d4 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -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