From 01d0f474a3a400cce91f0664981970f241d6b45d Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 31 Dec 2016 21:11:36 +0000 Subject: [PATCH] Minor improvement of couting regexp --- scripts/pi-hole/php/data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/data.php b/scripts/pi-hole/php/data.php index ab2de98c..aa619dad 100644 --- a/scripts/pi-hole/php/data.php +++ b/scripts/pi-hole/php/data.php @@ -534,7 +534,7 @@ $wildcard_domains = getWildcardListContent(); $wildcardblocked = 0; foreach ($wildcard_domains as $domain) { - $wildcardblocked += intval(exec("grep -c -e \"config.$domain is\" $logListName")); + $wildcardblocked += intval(exec("grep -c -e \"config.*$domain is\" $logListName")); } return $gravityblocked +$wildcardblocked;