From: Don Armstrong <don@donarmstrong.com>
Date: Wed, 2 Oct 2013 00:29:07 +0000 (-0700)
Subject: fix cache location regex
X-Git-Tag: release/2.6.0~275
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e4c7c1669e2ee2296e84ad2da0e20a06f3c82497;p=debbugs.git

fix cache location regex
---

diff --git a/Debbugs/Libravatar.pm b/Debbugs/Libravatar.pm
index ca9c035d..99184ec1 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) =