From: Fabian Keil Date: Tue, 3 May 2011 10:33:53 +0000 (+0000) Subject: Do not expect a trailing dot in: Request from 10.0.0.1 marked for blocking. limit... X-Git-Tag: v_3_0_18~241 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=ed42b61a0666c729ded5c3748f562fdd8bf23292 Do not expect a trailing dot in: Request from 10.0.0.1 marked for blocking. limit-connect{0} doesn't allow CONNECT requests to example.org:443 I intended to add one, but decided to go with the submitted version. --- diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index c021c894..b4fcffa0 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.115 2011/05/03 10:12:23 fabiankeil Exp $ +# $Id: privoxy-log-parser.pl,v 1.116 2011/05/03 10:19:20 fabiankeil Exp $ # # TODO: # - LOG_LEVEL_CGI, LOG_LEVEL_ERROR, LOG_LEVEL_WRITE content highlighting @@ -1752,14 +1752,14 @@ sub handle_loglevel_info ($) { # Request from 10.0.0.1 denied. limit-connect{,} doesn't allow CONNECT requests to port 443. # Request from 10.0.0.1 marked for blocking. limit-connect{,} doesn't allow CONNECT requests to port 443. # 3.0.18 and later: - # Request from 10.0.0.1 marked for blocking. limit-connect{0} doesn't allow CONNECT requests to www.example.org:443. + # Request from 10.0.0.1 marked for blocking. limit-connect{0} doesn't allow CONNECT requests to www.example.org:443 # Malformed server response detected. Downgrading to HTTP/1.0 impossible. $c =~ s@(?<=Request from )([^\s]*)@$h{'ip-address'}$1$h{'Standard'}@; $c =~ s@(denied|blocking)@$h{'warning'}$1$h{'Standard'}@; $c =~ s@(CONNECT)@$h{'method'}$1$h{'Standard'}@; $c =~ s@(?<=to port )(\d+)@$h{'port'}$1$h{'Standard'}@; - $c =~ s@(?<=to )([^\s]+)\.@$h{'request_'}$1$h{'Standard'}.@; + $c =~ s@(?<=to )([^\s]+)@$h{'request_'}$1$h{'Standard'}@; } elsif ($c =~ m/^Status code/) {