Skip to content

Commit ce1459f

Browse files
Krzysztof Mazurpeff
authored andcommitted
git-send-email: add rfc2047 quoting for "=?"
For raw subjects rfc2047 quoting is needed not only for non-ASCII characters, but also for any possible rfc2047 in it. Signed-off-by: Krzysztof Mazur <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent ce54780 commit ce1459f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ sub is_rfc2047_quoted {
908908
sub subject_needs_rfc2047_quoting {
909909
my $s = shift;
910910

911-
return ($s =~ /[^[:ascii:]]/);
911+
return ($s =~ /[^[:ascii:]]/) || ($s =~ /=\?/);
912912
}
913913

914914
sub quote_subject {

0 commit comments

Comments
 (0)