From ee9377e366cc08eee70709595c3553a478bc4661 Mon Sep 17 00:00:00 2001 From: akogan Date: Tue, 11 Oct 2022 15:42:44 -0400 Subject: [PATCH] Fixed a bug in credentials encoding Fixed a bug with encoding of credentials containing special characters --- source/files/JSLoginPopup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/files/JSLoginPopup.js b/source/files/JSLoginPopup.js index 6a19100..822502b 100644 --- a/source/files/JSLoginPopup.js +++ b/source/files/JSLoginPopup.js @@ -63,8 +63,8 @@ function loginKeyDown(event) { } function loginPopupOK() { - var username = document.getElementById("username").value; - var password = document.getElementById("password").value; + var username = encodeURIComponent(document.getElementById("username").value); + var password = encodeURIComponent(document.getElementById("password").value); var url = document.getElementById("loginPopupContentID").redirectURL; var qs = "username="+username+"&password="+password+"&url="+url+"&timeStamp="+new Date().getTime();