summaryrefslogtreecommitdiff
path: root/utils/modules/gallery.php
diff options
context:
space:
mode:
authordeva <deva>2010-02-25 19:56:19 +0000
committerdeva <deva>2010-02-25 19:56:19 +0000
commite84a854e54adf07d0bda64f8e3a4182940b44a97 (patch)
tree7f7b17536f59442b7ca0093d6aa460e8b54fccba /utils/modules/gallery.php
parent8640edd0906f2e617c6e94840a158bced0f5121b (diff)
Improved security a bit in image cache.
Diffstat (limited to 'utils/modules/gallery.php')
-rw-r--r--utils/modules/gallery.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/modules/gallery.php b/utils/modules/gallery.php
index f427344..3d6e638 100644
--- a/utils/modules/gallery.php
+++ b/utils/modules/gallery.php
@@ -422,9 +422,10 @@ class Gallery {
return new ImageSize($this->maxwidth_rand, $this->maxheight_rand);
case "navicon":
return new ImageSize($this->maxwidth_navicon, $this->maxheight_navicon);
- default:
case "albumicon":
return new ImageSize($this->maxwidth_icon, $this->maxheight_icon);
+ default:
+ die(404);
}
}