From ed6e388395d49e89774cbcd5b93e3f3a1c67ab01 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 25 Sep 2023 09:46:58 +1000 Subject: [PATCH] When a zip file name is illegal in plugin zip upload, advise which file name it is --- qgis-app/plugins/validator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qgis-app/plugins/validator.py b/qgis-app/plugins/validator.py index f8079687..6dbfd9a9 100644 --- a/qgis-app/plugins/validator.py +++ b/qgis-app/plugins/validator.py @@ -180,7 +180,8 @@ def validator(package): for zname in zip.namelist(): if zname.find("..") != -1 or zname.find(os.path.sep) == 0: raise ValidationError( - _("For security reasons, zip file cannot contain path informations") + _("For security reasons, zip file cannot contain path " + "information (found '{}')".format(zname)) ) if zname.find(".pyc") != -1: raise ValidationError(