From 632bb3dd28c142d36a5cb50df1da4b4a235b4854 Mon Sep 17 00:00:00 2001 From: MkQtS <81752398+MkQtS@users.noreply.github.com> Date: Sun, 23 Oct 2022 23:03:01 +0800 Subject: [PATCH] Avoid blocking domains that should be allowed --- scripts/lib/addressMaker.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/addressMaker.class.php b/scripts/lib/addressMaker.class.php index 2e797850..97cb6a6f 100644 --- a/scripts/lib/addressMaker.class.php +++ b/scripts/lib/addressMaker.class.php @@ -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);