Commit b0745dc0 authored by Romain Courteaud's avatar Romain Courteaud 🐙

slapos_panel: encode json string to use UTF-8

parent 25218aea
from Products.ERP5Type.Utils import unicode2str
def getCredentialFromUrl(url_string): def getCredentialFromUrl(url_string):
username = password = url = '' username = password = url = ''
param_list = url_string.split('#') param_list = url_string.split('#')
...@@ -44,7 +46,7 @@ else: ...@@ -44,7 +46,7 @@ else:
return {} return {}
return { return {
'username': username, 'username': unicode2str(username),
'password': password, 'password': unicode2str(password),
'url': url 'url': unicode2str(url)
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment