Changeset 6932
- Timestamp:
- May 2, 2008, 4:47:55 PM (14 years ago)
- Location:
- OpenPNE/branches/stable-2.8.x/webapp/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/stable-2.8.x/webapp/lib/OpenPNE/KtaiMail.php
r4745 r6932 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.8.x/webapp/lib/mail/sns.php
r5247 r6932 206 206 // 画像保存 207 207 $images = $this->decoder->get_images(); 208 if ($images === false) { 209 $this->error_mail('画像は' . IMAGE_MAX_FILESIZE . 'KB以内のGIF・JPEG・PNGにしてください。'); 210 return false; 211 } 208 212 $image_num = 1; 209 213 foreach ($images as $image) { … … 258 262 // 画像登録 259 263 $images = $this->decoder->get_images(); 264 if ($images === false) { 265 $this->error_mail('画像は' . IMAGE_MAX_FILESIZE . 'KB以内のGIF・JPEG・PNGにしてください。'); 266 return false; 267 } 260 268 $image_num = 1; 261 269 foreach ($images as $image) {
Note: See TracChangeset
for help on using the changeset viewer.