This commit is contained in:
gorhill 2015-03-16 12:00:19 -04:00
parent 332653284d
commit cbd0e1d126

View file

@ -109,7 +109,9 @@ var onAbpLinkClicked = function(ev) {
}
// List already subscribed to?
var externalLists = details.externalLists.trim().split(/\s+/);
// https://github.com/gorhill/uBlock/issues/1033
// Split on line separators, not whitespaces.
var externalLists = details.externalLists.trim().split(/\s*[\n\r]+\s*/);
if ( externalLists.indexOf(location) !== -1 ) {
return;
}