Commit 8e693530 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: encode json string to use UTF-8

parent b4934b3f
from Products.ERP5Type.Utils import unicode2str
def getCredentialFromUrl(url_string):
username = password = url = ''
param_list = url_string.split('#')
......@@ -44,7 +46,7 @@ else:
return {}
return {
'username': username,
'password': password,
'url': url
'username': unicode2str(username),
'password': unicode2str(password),
'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