summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-06-26 15:30:55 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-06-26 15:30:55 +0400
commitfc5c006ccbbcca3421a058aef93af8410bd50585 (patch)
tree42821465b507fedb6697ffb00c8cde96609ed3c3 /utils
parent5c8a618633d4cf42a429f0aad3c85378458dc839 (diff)
downloadrspamd-fc5c006ccbbcca3421a058aef93af8410bd50585.tar.gz
rspamd-fc5c006ccbbcca3421a058aef93af8410bd50585.zip
* Avoid using static variables for callbacks
* Do not write to redirector logs not checked urls
Diffstat (limited to 'utils')
-rwxr-xr-xutils/redirector.pl.in2
1 files changed, 1 insertions, 1 deletions
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");