From 4127ec0671b75c6e54ce6ecca3b351dc1c2928de Mon Sep 17 00:00:00 2001 From: Mark Wilson Date: Mon, 20 Jun 2016 01:16:07 -0700 Subject: [PATCH] URL-decode the response from config webview --- pebble_tool/util/browser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pebble_tool/util/browser.py b/pebble_tool/util/browser.py index 72a2e1b..f24e8c7 100644 --- a/pebble_tool/util/browser.py +++ b/pebble_tool/util/browser.py @@ -37,7 +37,8 @@ def do_GET(self): self.end_headers() self.wfile.write("OK") running[0] = False - callback(query) + decoded_query = urlparse.unquote(query) + callback(decoded_query) else: self.send_response(404) self.end_headers()