Fix change_url too

This commit is contained in:
Josué Tille 2018-12-30 18:58:40 +01:00
parent 616b0d020b
commit 412c656a9b
No known key found for this signature in database
GPG key ID: D5E068C6DFA8681D

View file

@ -1284,7 +1284,7 @@ def app_checkurl(auth, url, app=None):
logger.error("Packagers /!\\ : 'app checkurl' is deprecated ! Please use the helper 'ynh_webpath_register' instead !")
from yunohost.domain import domain_list
from yunohost.domain import domain_list, _normalize_domain_path
if "https://" == url[:8]:
url = url[8:]
@ -1298,8 +1298,7 @@ def app_checkurl(auth, url, app=None):
path = url[url.index('/'):]
installed = False
if path[-1:] != '/':
path = path + '/'
domain, path = _normalize_domain_path(domain, path)
apps_map = app_map(raw=True)