From 84046528bfc49863ab603b24af3832cfd5e26cfa Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 26 Apr 2020 09:31:45 +0200 Subject: [PATCH] Allow ( and ) in adlist URLs. Signed-off-by: DL6ER --- scripts/pi-hole/php/groups.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/groups.php b/scripts/pi-hole/php/groups.php index 7d2fdc5f..7cab27dc 100644 --- a/scripts/pi-hole/php/groups.php +++ b/scripts/pi-hole/php/groups.php @@ -649,7 +649,7 @@ if ($_POST['action'] == 'get_groups') { } foreach ($addresses as $address) { - if(preg_match("/[^a-zA-Z0-9:\/?&%=~._-]/", $address) !== 0) { + if(preg_match("/[^a-zA-Z0-9:\/?&%=~._()-]/", $address) !== 0) { throw new Exception('Invalid adlist URL'); }