File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ public function subject($subject = null) {
475
475
if ($ subject === null ) {
476
476
return $ this ->_subject ;
477
477
}
478
- $ this ->_subject = ( string )$ subject ;
478
+ $ this ->_subject = $ this -> _encode (( string )$ subject) ;
479
479
return $ this ;
480
480
}
481
481
Original file line number Diff line number Diff line change @@ -342,6 +342,10 @@ public function testSubject() {
342
342
$ result = $ this ->CakeEmail ->subject (array ('something ' ));
343
343
$ this ->assertIdentical ($ this ->CakeEmail ->subject (), 'Array ' );
344
344
$ this ->assertIdentical ($ this ->CakeEmail , $ result );
345
+
346
+ $ this ->CakeEmail ->subject ('هذه رسالة بعنوان طويل مرسل للمستلم ' );
347
+ $ expected = '=?UTF-8?B?2YfYsNmHINix2LPYp9mE2Kkg2KjYudmG2YjYp9mGINi32YjZitmEINmF2LE=?= ' . "\r\n" . ' =?UTF-8?B?2LPZhCDZhNmE2YXYs9iq2YTZhQ==?= ' ;
348
+ $ this ->assertIdentical ($ this ->CakeEmail ->subject (), $ expected );
345
349
}
346
350
347
351
/**
You can’t perform that action at this time.
0 commit comments