Skip to content

Commit

Permalink
git-send-email: add rfc2047 quoting for "=?"
Browse files Browse the repository at this point in the history
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 <krzysiek@podlesie.net>
Signed-off-by: Jeff King <peff@peff.net>
  • Loading branch information
Krzysztof Mazur authored and Jeff King committed Oct 25, 2012
1 parent ce54780 commit ce1459f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ sub is_rfc2047_quoted {
sub subject_needs_rfc2047_quoting {
my $s = shift;

return ($s =~ /[^[:ascii:]]/);
return ($s =~ /[^[:ascii:]]/) || ($s =~ /=\?/);
}

sub quote_subject {
Expand Down

0 comments on commit ce1459f

Please sign in to comment.