浏览代码

Double base64 encoding fix

MP-Network Development 8 年之前
父节点
当前提交
6c924c5923
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/Mailer/Email.php

+ 0 - 1
src/Mailer/Email.php

@@ -214,7 +214,6 @@ class Email extends CakeEmail {
 				if (is_int($name)) {
 					throw new InvalidArgumentException('No filename specified.');
 				}
-				$fileInfo['data'] = chunk_split(base64_encode($fileInfo['data']), 76, "\r\n");
 			} else {
 				$fileName = $fileInfo['file'];
 				if (!preg_match('~^https?://~i', $fileInfo['file'])) {