1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

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

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;
}