Changeset 6930
- Timestamp:
- May 2, 2008, 4:42:42 PM (14 years ago)
- Location:
- OpenPNE/branches/stable-2.10.x/webapp/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/stable-2.10.x/webapp/lib/OpenPNE/KtaiMail.php
r4735 r6930 178 178 // multipart 179 179 foreach ($mail->parts as $part) { 180 $images = array_merge($images, $this->_get_images($part)); 180 $item = $this->_get_images($part); 181 if ($item === false) { 182 return false; 183 } 184 185 $images = array_merge($images, $item); 181 186 } 182 187 } elseif (strtolower($mail->ctype_primary) === 'image' && … … 190 195 $image_data = base64_decode($image_data); 191 196 if (!@imagecreatefromstring($image_data)) { 192 return array();197 return false; 193 198 } 194 199 } … … 204 209 if ($this->img_max_filesize && filesize($tmpfname) > $this->img_max_filesize) { 205 210 unlink($tmpfname); 206 return array();211 return false; 207 212 } 208 213 -
OpenPNE/branches/stable-2.10.x/webapp/lib/mail/sns.php
r5949 r6930 281 281 // 写真登録 282 282 $images = $this->decoder->get_images(); 283 if ($images === false) { 284 $this->error_mail('画像は' . IMAGE_MAX_FILESIZE . 'KB以内のGIF・JPEG・PNGにしてください。'); 285 return false; 286 } 283 287 $image_num = 1; 284 288 foreach ($images as $image) { … … 333 337 // 写真登録 334 338 $images = $this->decoder->get_images(); 339 if ($images === false) { 340 $this->error_mail('画像は' . IMAGE_MAX_FILESIZE . 'KB以内のGIF・JPEG・PNGにしてください。'); 341 return false; 342 } 335 343 $image_num = 1; 336 344 foreach ($images as $image) {
Note: See TracChangeset
for help on using the changeset viewer.