From c9a8968d4aa3673259d00d658d17aaa768673a9c Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 21 Aug 2018 18:01:11 +0100 Subject: [PATCH] lib/js/nb.js --- lib/js/nb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/js/nb.js b/lib/js/nb.js index fff86b03..c77695c3 100644 --- a/lib/js/nb.js +++ b/lib/js/nb.js @@ -254,7 +254,7 @@ function NB(args) { if (!p.name) continue; if (p.value=='') continue; if (p.value=='undefined') continue; - // NB 02.09.13 url += (url ? '&' : '?') + escape(p.name) + '=' + escape(p.value); + if ( ( p.type == 'radio' || p.type == 'checkbox' ) && p.checked != true ) continue url += (url ? '&' : '?') + encodeURI(p.name) + '=' + encodeURI(p.value); } -- 2.47.3