From: Jon Murphy Date: Fri, 17 Feb 2023 17:53:37 +0000 (-0600) Subject: log.dat: Fix an error with 'unbound' logging too much data. X-Git-Tag: v2.27-core174~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4bb389232ea4610feb20fa880ee39d9ad514c8af;p=ipfire-2.x.git log.dat: Fix an error with 'unbound' logging too much data. - Make regex "non-greedy" - grab data up to first occurance of "]" and not last occurance of "]" Signed-off-by: Jon Murphy --- diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat index bf71b3c9f6..fbc83f48dd 100644 --- a/html/cgi-bin/logs.cgi/log.dat +++ b/html/cgi-bin/logs.cgi/log.dat @@ -75,7 +75,7 @@ my %sections = ( 'suricata' => '(suricata: )', 'squid' => '(squid\[.*\]: |squid: )', 'ssh' => '(sshd(?:\(.*\))?\[.*\]: )', - 'unbound' => '(unbound: \[.*:.*\])(.*:.*$)', + 'unbound' => '(unbound: \[.*?\])(.*:.*$)', 'urlfilter bl' => '(installpackage\[urlfilter\]: )', 'wireless' => '(hostapd:|kernel: ath.*:|kernel: wifi[0-9]:)' );