From 3a878334b589ffb5519fd21af67d6dd06c8b13fd Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Fri, 5 May 2017 20:16:48 +0200 Subject: [PATCH] Fix PKC not storing network credentials correctly - Fixes #287 --- resources/lib/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 1abfc8b1..79a0bf49 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -16,6 +16,7 @@ from calendar import timegm from os.path import exists, join from os import remove, makedirs, walk from shutil import rmtree +from urllib import quote_plus import xbmc import xbmcaddon @@ -696,18 +697,19 @@ def passwordsXML(): server = dialog.input("Enter the server name or IP address") if not server: return + server = quote_plus(server) # Network username user = dialog.input("Enter the network username") if not user: return + user = quote_plus(user) # Network password password = dialog.input("Enter the network password", '', # Default input xbmcgui.INPUT_ALPHANUM, xbmcgui.ALPHANUM_HIDE_INPUT) # Need to url-encode the password - from urllib import quote_plus password = quote_plus(password) # Add elements. Annoying etree bug where findall hangs forever if skipFind is False: