fix Add link encoding

closes #79

Thanks, Anonymous, for reporting and assisting with solving this!
This commit is contained in:
Collin M. Barrett 2017-02-24 06:28:21 -06:00
parent 47ae0e276f
commit d086007f27

View file

@ -11,7 +11,7 @@ function createHtmlArrayLinkButton(htmlType, url, listName) {
return "<a href=\"" + url + "\" title=\"Preview " + listName + " in your browser.\" class=\"button piwik_download\">View</a>";
break;
case "addUrl":
return "<a href=\"abp:subscribe?location=" + url + "&title=" + listName + "\" title=\"Subscribe to " + listName + " in your content blocker.\" class=\"button piwik_download\">Add</a>";
return "<a href=\"abp:subscribe?location=" + encodeUrlArray(url) + "&title=" + encodeUrlArray(listName) + "\" title=\"Subscribe to " + listName + " in your content blocker.\" class=\"button piwik_download\">Add</a>";
break;
case "homeUrl":
return "<a href=\"" + url + "\" title=\"" + listName + " Home Page\" class=\"button\">Home</a>";