From 556885b8ba3f91d638e55aef2ae553cb42b8b8c0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 23 Apr 2021 16:49:41 +0100 Subject: [PATCH] Debug --- daemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 7806fef5e..856b33a82 100644 --- a/daemon.py +++ b/daemon.py @@ -1835,7 +1835,7 @@ class PubServer(BaseHTTPRequestHandler): return accessKeysParams = \ urllib.parse.unquote_plus(accessKeysParams) - + print('accessKeysParams: ' + str(accessKeysParams)) # key shortcuts screen, back button # See htmlAccessKeys if '&submitAccessKeysCancel=' in accessKeysParams or \ @@ -1855,11 +1855,12 @@ class PubServer(BaseHTTPRequestHandler): accessKeys[variableName] = accessKeysTemplate[variableName] variableName2 = variableName.replace(' ', '_') - if variableName2 in accessKeysParams: + if variableName2 + '=' in accessKeysParams: newKey = accessKeysParams.split(variableName2 + '=')[1] if '&' in newKey: newKey = newKey.split('&')[0] if newKey: + print('accessKeysParams newKey: ' + str(newKey)) if len(newKey) > 1: newKey = newKey[0] if newKey != accessKeys[variableName]: