Skip to content

Commit

Permalink
When a zip file name is illegal in plugin zip upload, advise which
Browse files Browse the repository at this point in the history
file name it is
  • Loading branch information
nyalldawson committed Sep 24, 2023
1 parent 6a7d849 commit ed6e388
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qgis-app/plugins/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ed6e388

Please sign in to comment.