Forbid installing apps with a dot in app id

This commit is contained in:
Alexandre Aubin 2021-08-26 20:14:23 +02:00
parent 083510b060
commit aac0146aef

View file

@ -887,7 +887,7 @@ def app_install(
raise YunohostValidationError("disk_space_not_sufficient_install")
# Check ID
if "id" not in manifest or "__" in manifest["id"]:
if "id" not in manifest or "__" in manifest["id"] or "." in manifest["id"]:
raise YunohostValidationError("app_id_invalid")
app_id = manifest["id"]