commit 359a91b5e801aae840e78e79454fee045f68b57f
parent 4f55430525bde5c0ad16947d8a8cd75f934015a1
Author: Sheng <webmaster0115@gmail.com>
Date: Tue, 14 Jan 2020 17:16:02 +0800
Fixed a bug of url argument value containing an equal sign
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js
@@ -133,7 +133,7 @@ jQuery(function($){
for (i = 0; i < arr.length; i++) {
pair = arr[i].split('=');
key = pair[0].trim().toLowerCase();
- val = pair[1] && pair[1].trim();
+ val = pair.slice(1).join('=').trim();
if (form_keys.indexOf(key) >= 0) {
form_map[key] = val;