From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 12 Nov 2011 12:56:42 +0000 (+0000)
Subject: Accept and highlight: Percent-encoding redirect URL: http://www.example.org/\x02
X-Git-Tag: v_3_0_18~29
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/howto.html?a=commitdiff_plain;h=be448ccfa52ee0841b4d7edb71c532004c881754;p=privoxy.git

Accept and highlight: Percent-encoding redirect URL: example.org/\x02
---

diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index 84036024..c33f79c2 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -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);