this fixes subscribing to filter lists having a query part in their URL

This commit is contained in:
gorhill 2015-07-16 18:13:51 -04:00
parent 97e53ba986
commit bc30979689
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ var onAbpLinkClicked = function(ev) {
}
var matches = /^abp:\/*subscribe\/*\?location=([^&]+).*title=([^&]+)/.exec(href);
if ( matches === null ) {
matches = /^https?:\/\/[^?]+\?location=([^&]+).*title=([^&]+)/.exec(href);
matches = /^https?:\/\/.*?[&?]location=([^&]+).*?&title=([^&]+)/.exec(href);
if ( matches === null ) {
return;
}