mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Make sure to strip() the path just in case
Co-Authored-By: Bram <cortex@worlddomination.be>
This commit is contained in:
parent
755ba61b32
commit
cde68cd7cc
1 changed files with 2 additions and 2 deletions
|
@ -239,7 +239,7 @@ def app_map(app=None, raw=False, user=None):
|
|||
perm_domain, perm_path = perm_url.split("/", 1)
|
||||
perm_path = "/" + perm_path.rstrip("/")
|
||||
|
||||
perm_path = perm_path if perm_path != "" else "/"
|
||||
perm_path = perm_path if perm_path.strip() != "" else "/"
|
||||
|
||||
return perm_domain, perm_path
|
||||
|
||||
|
@ -1269,7 +1269,7 @@ def app_ssowatconf():
|
|||
perm_domain, perm_path = perm_url.split("/", 1)
|
||||
perm_path = "/" + perm_path.rstrip("/")
|
||||
|
||||
perm_path = perm_path if perm_path != "" else "/"
|
||||
perm_path = perm_path if perm_path.strip() != "" else "/"
|
||||
|
||||
return perm_domain + perm_path
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue