summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/photo.php
diff options
context:
space:
mode:
authordkm <dkm@gre.kataplop.net>2009-06-09 13:40:40 +0200
committerdkm <dkm@gre.kataplop.net>2009-06-09 13:40:40 +0200
commit93acc00959acaa365b0750f4ed8cf1cb2e2caefc (patch)
treea84e4fb45e51841d202b654bc99cf8eab41cd40e /modules/gallery/helpers/photo.php
parente77ba1d7512b3d7f4c3cd12bb499e0e296c485ae (diff)
parenta42c101c0b76edb403f2f9c646c27539b983394b (diff)
Merge branch 'master' of git@github.com:dkm/gallery3
Diffstat (limited to 'modules/gallery/helpers/photo.php')
-rw-r--r--modules/gallery/helpers/photo.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/helpers/photo.php b/modules/gallery/helpers/photo.php
index c1c005f5..a4bc853b 100644
--- a/modules/gallery/helpers/photo.php
+++ b/modules/gallery/helpers/photo.php
@@ -53,6 +53,10 @@ class photo_Core {
throw new Exception("@todo NAME_CANNOT_END_IN_PERIOD");
}
+ if (filesize($filename) == 0) {
+ throw new Exception("@todo EMPTY_INPUT_FILE");
+ }
+
$image_info = getimagesize($filename);
// Force an extension onto the name