From fc5c006ccbbcca3421a058aef93af8410bd50585 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 26 Jun 2009 15:30:55 +0400 Subject: * Avoid using static variables for callbacks * Do not write to redirector logs not checked urls --- utils/redirector.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/redirector.pl.in b/utils/redirector.pl.in index 04fefb59a..0fc79beea 100755 --- a/utils/redirector.pl.in +++ b/utils/redirector.pl.in @@ -381,7 +381,7 @@ sub process_input { if ((defined($cfg{check_regexp}) && $request->uri !~ $cfg{check_regexp}) || (defined($cfg{check_domains}) && scalar(grep {$_ eq $domain} @{$cfg{check_domains}}) == 0)) { - write_log ($heap->{remote_ip}, "Uri is not checked: " . $request->uri); + write_log ($heap->{remote_ip}, "Uri is not checked: " . $request->uri) if $cfg{debug}; my $new_response = HTTP::Response->new(200); $new_response->header("Uri", $request->uri); $new_response->header("Connection", "close"); -- cgit v1.2.3