[Privoxy-commits] [privoxy] 09/11: privoxy-log-parser: Highlight 'Rewrite detected: ...' messages again
    User Git 
    git at git.privoxy.org
       
    Sat Jan  2 12:55:55 UTC 2021
    
    
  
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 74ed6c9d40b76bc9c9c00946d266dfbc400884c4
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sat Dec 26 13:33:10 2020 +0100
    privoxy-log-parser: Highlight 'Rewrite detected: ...' messages again
---
 tools/privoxy-log-parser.pl | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index 5bc6d792..7623100b 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -1305,6 +1305,12 @@ sub handle_loglevel_redirect($) {
         # Percent-encoding redirect URL: http://www.example.org/\x02
         $c = highlight_matched_url($c, '(?<=redirect URL: ).*');
 
+    } elsif ($c =~ m/^Rewrite detected:/) {
+
+        # Rewrite detected: GET http://10.0.0.2:88/blah.txt HTTP/1.1
+        # Rewrite detected: GET https://www.electrobsd.org/CommonJS/ajax/libs/jquery/3.4.1/jquery.min.js HTTP/1.1
+        $c = highlight_matched_request_line($c, '(?<=^Rewrite detected: ).*');
+
     } else {
 
         found_unknown_content($c);
-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
    
    
More information about the Privoxy-commits
mailing list