From 439f8fc47613fcf4b8eee7dc9fd71cb3fe791be8 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Sun, 3 May 2020 03:57:17 +0200 Subject: [PATCH] Fix UiPassword logout and session list url encoding --- plugins/disabled-UiPassword/UiPasswordPlugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/disabled-UiPassword/UiPasswordPlugin.py b/plugins/disabled-UiPassword/UiPasswordPlugin.py index 1962d5e6..bbc2df85 100644 --- a/plugins/disabled-UiPassword/UiPasswordPlugin.py +++ b/plugins/disabled-UiPassword/UiPasswordPlugin.py @@ -90,12 +90,14 @@ class UiRequestPlugin(object): del(cls.sessions[session_id]) # Action: Display sessions + @helper.encodeResponse def actionSessions(self): self.sendHeader() yield "
"
         yield json.dumps(self.sessions, indent=4)
 
     # Action: Logout
+    @helper.encodeResponse
     def actionLogout(self):
         # Session id has to passed as get parameter or called without referer to avoid remote logout
         session_id = self.getCookies().get("session_id")