From: German Service Network Date: Sun, 19 Jul 2020 08:30:11 +0000 (+0200) Subject: Merge github 3134d5b (Report rejected filename in ensuresafepath.) X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38ad1eacc98ef2a682f64cf46c8d48727ff0104b;p=raspbmirror.git Merge github 3134d5b (Report rejected filename in ensuresafepath.) --- diff --git a/raspbmirror.py b/raspbmirror.py index 4770fd2..9e4ec69 100644 --- a/raspbmirror.py +++ b/raspbmirror.py @@ -99,7 +99,7 @@ def ensuresafepath(path): sys.exit(1) for component in pathsplit: if not pfnallowed.fullmatch(component): - logging.info("file name contains unexpected characters") + logging.info("file name "+ascii(filename)+" contains unexpected characters") sys.exit(1) elif component[0] == '.': logging.info("filenames starting with a dot are not allowed")