File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -440,7 +440,7 @@ protected function compileBasic(array $where): string
440
440
if ($ where ['value ' ] instanceof RawQueryValue) {
441
441
$ part .= ' ' .$ where ['value ' ]->value ;
442
442
} elseif ($ where ['value ' ]) {
443
- $ part .= ' " ' .$ where ['value ' ].'" ' ;
443
+ $ part .= ' " ' .Str:: toImapUtf7 ( $ where ['value ' ]) .'" ' ;
444
444
}
445
445
446
446
if ($ where ['not ' ]) {
Original file line number Diff line number Diff line change @@ -220,3 +220,11 @@ function (ImapQueryBuilder $q) {
220
220
221
221
expect ($ builder ->toImap ())->toBe ('FOO bar ' );
222
222
});
223
+
224
+ test ('converts values from utf-8 to utf-7 ' , function () {
225
+ $ builder = new ImapQueryBuilder ;
226
+
227
+ $ builder ->where ('foo ' , 'Joué ' );
228
+
229
+ expect ($ builder ->toImap ())->toBe ('FOO "Jou&AOk-" ' );
230
+ });
You can’t perform that action at this time.
0 commit comments