Skip to content

Commit

Permalink
fix Add link encoding
Browse files Browse the repository at this point in the history
closes #79

Thanks, Anonymous, for reporting and assisting with solving this!
  • Loading branch information
collinbarrett committed Feb 24, 2017
1 parent 47ae0e2 commit d086007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gs/html-factory.gs
Original file line number Diff line number Diff line change
Expand Up @@ -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>";
Expand Down

0 comments on commit d086007

Please sign in to comment.