Accept and highlight: Percent-encoding redirect URL: http://www.example.org/\x02
authorFabian Keil <fk@fabiankeil.de>
Sat, 12 Nov 2011 12:56:42 +0000 (12:56 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sat, 12 Nov 2011 12:56:42 +0000 (12:56 +0000)
tools/privoxy-log-parser.pl

index 8403602..c33f79c 100755 (executable)
@@ -8,7 +8,7 @@
 #
 # http://www.fabiankeil.de/sourcecode/privoxy-log-parser/
 #
-# $Id: privoxy-log-parser.pl,v 1.121 2011/08/18 11:41:18 fabiankeil Exp $
+# $Id: privoxy-log-parser.pl,v 1.122 2011/11/12 12:55:46 fabiankeil Exp $
 #
 # TODO:
 #       - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting
@@ -1267,6 +1267,11 @@ sub handle_loglevel_redirect ($) {
         # XXX: assume the same?
         $c = highlight_matched_url($c, '(?<=assuming that \")[^"]*');
 
+    } elsif ($c =~ m/^Percent-encoding redirect/) {
+
+        # Percent-encoding redirect URL: http://www.example.org/\x02
+        $c = highlight_matched_url($c, '(?<=redirect URL: ).*');
+
     } else {
 
         found_unknown_content($c);