From: Vsevolod Stakhov Date: Tue, 16 Jun 2015 14:32:44 +0000 (+0100) Subject: Update->add X-Git-Tag: 0.9.6~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8aa698fe571b2c1821fae82787a38a180435c885;p=rspamd.git Update->add --- diff --git a/utils/redirector.pl.in b/utils/redirector.pl.in index fb8daf251..7c79cdfa7 100755 --- a/utils/redirector.pl.in +++ b/utils/redirector.pl.in @@ -186,7 +186,7 @@ sub memcached_check_url { my ( $url ) = @_; my $context = Digest->new("SHA-256"); - $context->update($url); + $context->add($url); return $memd->get($context->digest()); } @@ -196,7 +196,7 @@ sub memcached_cache_url { if ($url ne $url_real) { my $context = Digest->new("SHA-256"); - $context->update($url); + $context->add($url); $memd->set($context->digest(), $url_real, $cfg{cache_expire}); }