CakePHP 2.3.5 ã®CakeEmailã¯ãã°ã£ã¦ãã¦ãISO-2022-JPã®ç¹å®ã®æåãå ¥ã£ã¦ããã¡ã¼ã«ãéä¿¡ãããã¨ããã¨æååã(ã¨ããããç¹å®ã®æåå以éããã®è¡ããã£ãããªããªã)ãã¾ãã
æ¢ã«ä¿®æ£ãããã pull-request ãã¦ãã¨ããã¾ãã¦ããã®ã§ã2.3.6 以éã§ã¯æ²»ã£ã¦ãããã¨ã«ãªãã¨æããã§ãããåãæ¥ãæ²»ããã人ã¯ä»¥ä¸ã®ãã¡ã¤ã«ãä¿®æ£ãã¦ãã ããã
- lib/Cake/Network/Email/CakeEmail.php ã® 1257 è¡ç®ä»è¿
ä¿®æ£å
foreach ($lines as $line) { if (empty($line)) { $formatted[] = ''; continue; } if (!preg_match('/\<[a-z]/i', $line)) {
ä¿®æ£å¾
foreach ($lines as $line) { if (empty($line)) { $formatted[] = ''; continue; } if (strlen($line) < $wrapLength) { $formatted[] = $line; continue; } if (!preg_match('/<[a-z]+.*>/i', $line)) {
ä¿®æ£ãã¤ã³ãã¯ã»ã»ã»
- ISO-2022-JPã®ãåãã®ãããªç¹å®ã®æåã«ã¯ã
- ãã®ã¡ã½ããã¯ç¬¬2å¼æ°ã® $wrapLength ããé·ãå ´åã«ããã®è¡ã«å¯¾ãã¦wrapå¦çãããããã®ãã®ã ããã$wrapLengthããçããªããã®è¡ã¯å¦çããªãã¦ããã¯ã
- ããããã<ãã«ã¨ã¹ã±ã¼ããããªããï¼
ãããããwordwrapé¢æ°ãããã¦ã¿ãããæååã $line[$i] ã¨ããããã«ä½ãã¤ãç®ï¼ããããæ¹ã§ã¨ã£ã¦ãããã¨ããã«ããã¤ãã§å¤§ä¸å¤«ãï¼ã¨ããå¦çãè¡ããã¦ããã®ã§ãåºæ¬çã«ã¡ã¼ã«ã§éä¿¡ãã1è¡ã¯ 998 ãã¤ã以ä¸ã«ããªãããã«ãã¨ããã»ããããã§ãã(998ãã¤ã以ä¸ã«ãªãã¨ãããããã¨ã¤ãã¤å¦çãéãã®ã§...)
ä»åã¯ã¹ã«ã¼ããããã®è¡ã«ã¿ã°ããããã®ãå ¥ã£ãå ´åãã«ã¤ãã¦ããããããå¦çå 容ããã§ãã¯ãã¦ããã«ããã¤ãã§ã大ä¸å¤«ã«ãã¦ãããããªã¨æã£ã¦ããããæã£ã¦ãªãã£ãã...