diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-08-27 17:04:48 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-27 17:04:48 -0700 |
| commit | a28dd09c4eac11ce406525ffd871df7605d5175f (patch) | |
| tree | 6b3cdfb65c0e690c26b8fc1f360f3ed6316fe08c /modules/gallery/views | |
| parent | 5235c7a0b79d12305d99fdafe2710583f5368fcc (diff) | |
Properly deal with invalid images. This fixes ticket #611 which shows
a BMP masquerading as a .jpg causing us to be unable to rebuild
resizes and thumbnails. Now if that happens, we discard the file, log
it and move on.
Diffstat (limited to 'modules/gallery/views')
| -rw-r--r-- | modules/gallery/views/simple_uploader.html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/views/simple_uploader.html.php b/modules/gallery/views/simple_uploader.html.php index 38ac518c..29a0dfe8 100644 --- a/modules/gallery/views/simple_uploader.html.php +++ b/modules/gallery/views/simple_uploader.html.php @@ -218,7 +218,7 @@ var fp = new File_Progress(file); switch (error_code) { case SWFUpload.UPLOAD_ERROR.HTTP_ERROR: - fp.set_status("error", "<?= t("Upload error: ") ?>" + message); + fp.set_status("error", "<?= t("Upload error: bad image file") ?>"); break; case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED: fp.set_status("error", "<?= t("Upload failed") ?>"); |
