summaryrefslogtreecommitdiff
path: root/utils/imagecache.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/imagecache.php
parent8640edd0906f2e617c6e94840a158bced0f5121b (diff)
Improved security a bit in image cache.
Diffstat (limited to 'utils/imagecache.php')
-rw-r--r--utils/imagecache.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/imagecache.php b/utils/imagecache.php
index 811ba0c..a4a7792 100644
--- a/utils/imagecache.php
+++ b/utils/imagecache.php
@@ -48,6 +48,7 @@ function getCachedImage($filename, $mod, $cat)
global $modules;
loadModule($mod);
if(!$modules[$mod]) die(404);
+ if(!method_exists($modules[$mod], "getImageSize")) die(404);
$size = $modules[$mod]->getImageSize($cat);
$maxwidth = $size->width;