From de04886d0723363b1f6a76ed51905a0e6c657091 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 18 Jan 2021 01:29:42 +0100 Subject: [PATCH] privoxy-log-parser: Properly deal with 'Certificate error' crunches Previously the error description was highlighted as 'host'. --- tools/privoxy-log-parser.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 095133ab..02a38cd8 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -1422,6 +1422,11 @@ sub handle_loglevel_crunch($) { # [...]&filter... [too long, truncated] $content = highlight_matched_pattern($content, 'request_', '^.*(?=\.\.\. \[too long, truncated\]$)'); + } elsif ($content =~ m/Certificate error:/) { + + # Certificate error: ASN date error, current date after: https://expired.badssl.com/ + $content = highlight_matched_pattern($content, 'request_', 'https://.*'); + } else { # Blocked: http://ads.example.org/ -- 2.39.2