mirror of
https://github.com/privacy-protection-tools/anti-AD.git
synced 2025-02-13 17:12:41 +08:00
Avoid blocking domains that should be allowed
This commit is contained in:
parent
578e2dac55
commit
632bb3dd28
@ -95,7 +95,7 @@ class addressMaker{
|
||||
continue;
|
||||
}
|
||||
|
||||
if(preg_match('/^\|\|([0-9a-z\-\.]+[a-z]+)\^(\$([^=]+?,)?(image|third-party|script)(,[^=]+)?)?$/', $line, $matches)){
|
||||
if(preg_match('/^\|\|([0-9a-z\-\.]+[a-z]+)\^(\$([^=~]+?,)?(image|third-party|script)(,[^=~]+)?)?$/', $line, $matches)){
|
||||
|
||||
if(substr($matches[1], 0, 4) == 'www.'){
|
||||
$row = substr($matches[1], 4);
|
||||
|
Loading…
Reference in New Issue
Block a user