From e21c04e5800856b2f998d01789b4757ff06e19f0 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sat, 29 Oct 2016 16:47:48 +0200 Subject: [PATCH] Fix smb credentials password not being url-encoded --- 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 61666041..f8b8bbaa 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -677,7 +677,9 @@ def passwordsXML(): '', # 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: skipFind = True