From e4c7c1669e2ee2296e84ad2da0e20a06f3c82497 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 1 Oct 2013 17:29:07 -0700 Subject: [PATCH] fix cache location regex --- Debbugs/Libravatar.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Debbugs/Libravatar.pm b/Debbugs/Libravatar.pm index ca9c035..99184ec 100644 --- a/Debbugs/Libravatar.pm +++ b/Debbugs/Libravatar.pm @@ -94,7 +94,7 @@ sub retrieve_libravatar{ ); my %param = @_; my $cache_location = $param{location}; - $cache_location =~ s/\.[^\.]+$//; + $cache_location =~ s/\.[^\.\/]+$//; # take out a lock on the cache location so that if another request # is made while we are serving this one, we don't do double work my ($fh,$lockfile,$errors) = -- 2.39.2