From 7e11b0b7da2a776588b43213adfe980cd67b31e4 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sat, 14 Oct 2017 19:00:15 +0200 Subject: [PATCH] Stability: Encode url path --- src/js/dial.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/dial.js b/src/js/dial.js index 07ba86f..1906ab1 100644 --- a/src/js/dial.js +++ b/src/js/dial.js @@ -326,8 +326,8 @@ dial.populateGrid = function(){ link.className = 'Folder'; link.childNodes[0].style.backgroundImage = ''; link.childNodes[1].innerText = node.title; - if(dial.path) link.href = '?' + 'bg=' + encodeURIComponent(app.settings.backgroundColor) + '&path=' + dial.path + node.title; - else link.href = '?' + 'bg=' + encodeURIComponent(app.settings.backgroundColor) + '&path=' + node.title; + if(dial.path) link.href = '?' + 'bg=' + encodeURIComponent(app.settings.backgroundColor) + '&path=' + encodeURIComponent(dial.path + node.title); + else link.href = '?' + 'bg=' + encodeURIComponent(app.settings.backgroundColor) + '&path=' + encodeURIComponent(node.title); link.onclick = null; link.setAttribute('contextmenu', 'item'); }