From d07bb2e61a6d36cf85f8a543f725d2f00b0ec25d Mon Sep 17 00:00:00 2001 From: Steven Ngesera Date: Tue, 5 Mar 2024 05:06:30 +0300 Subject: [PATCH] Fix Spaces in passwords are not handled correctly when adding servers issue --- modules/core/site.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/site.js b/modules/core/site.js index af5fa63225..9baa14348f 100644 --- a/modules/core/site.js +++ b/modules/core/site.js @@ -27,7 +27,7 @@ $.fn.serializeArray = function() { parts = args[i].split('='); res.push({'name': parts[0], 'value': parts[1]}); } - return res.map(function(x) {return {name: x.name, value: decodeURIComponent(x.value)}}); + return res.map(function(x) {return {name: x.name, value: decodeURIComponent(x.value.replace(/\+/g, " "))}}); }; $.fn.sort = function(sort_function) { var list = [];