mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Trailing slash in ssowat uris cause issues to access app installed on root, we only need it for app_map ...
This commit is contained in:
parent
e01a3ba572
commit
ae98ec1aa7
1 changed files with 2 additions and 2 deletions
|
@ -261,6 +261,8 @@ def app_map(app=None, raw=False, user=None):
|
|||
perm_domain, perm_path = perm_url.split("/", 1)
|
||||
perm_path = "/" + perm_path.rstrip("/")
|
||||
|
||||
# N.B. : having '/' instead of empty string is needed in app_map
|
||||
# but should *not* be done in app_ssowatconf (yeah :[)
|
||||
perm_path = perm_path if perm_path.strip() != "" else "/"
|
||||
|
||||
return perm_domain, perm_path
|
||||
|
@ -1291,8 +1293,6 @@ def app_ssowatconf():
|
|||
perm_domain, perm_path = perm_url.split("/", 1)
|
||||
perm_path = "/" + perm_path.rstrip("/")
|
||||
|
||||
perm_path = perm_path if perm_path.strip() != "" else "/"
|
||||
|
||||
return perm_domain + perm_path
|
||||
|
||||
# Skipped
|
||||
|
|
Loading…
Add table
Reference in a new issue