From e84a854e54adf07d0bda64f8e3a4182940b44a97 Mon Sep 17 00:00:00 2001
From: deva <deva>
Date: Thu, 25 Feb 2010 19:56:19 +0000
Subject: Improved security a bit in image cache.

---
 utils/modules/gallery.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'utils/modules/gallery.php')

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);
 		}
 	}
 
-- 
cgit v1.2.3