git-svn-id: file:///srv/don_svn/deb_pkgs/libapache-gallery-perl/trunk@635
8f7917da-ec0b-0410-a553-
b9b0e350d17e
+libapache-gallery-perl (1.0.2-2) unstable; urgency=low
+
+ * Rewrite path to icons in request
+
+ -- Don Armstrong <don@debian.org> Sat, 26 Nov 2011 16:29:55 -0800
+
libapache-gallery-perl (1.0.2-1) unstable; urgency=low
* New upstream release
# Let Apache serve icons without us modifying the request
if ($r->uri =~ m/^\/icons/i) {
- return $::MP2 ? Apache2::Const::DECLINED() : Apache::Constants::DECLINED();
+ if ($r->uri =~ m/^\/icons\/gallery\/([^\/]+$)/i) {
+ $filename = "/usr/share/libapache-gallery-perl/icons/$filename";
+ $r->filename($filename);
+ }
+ return $::MP2 ? Apache2::Const::DECLINED() : Apache::Constants::DECLINED();
}
# Lookup the file in the cache and scale the image if the cached
# image does not exist