diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2009-06-09 00:26:01 -0600 |
|---|---|---|
| committer | Chad Kieffer <ckieffer@gmail.com> | 2009-06-09 00:26:01 -0600 |
| commit | a42c101c0b76edb403f2f9c646c27539b983394b (patch) | |
| tree | 833c42c308aa5eca8a0469a67b723936e33a81f9 /modules/gallery/helpers/photo.php | |
| parent | d2b8ca241d6b2a1c1a512c731721b738e719d613 (diff) | |
| parent | e6768a4e9771f5f751d74001ce3a0d33f6775216 (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/photo.php')
| -rw-r--r-- | modules/gallery/helpers/photo.php | 4 |
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 |
