summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorKrzysztof Mazur <krzysiek@podlesie.net>2012-10-24 23:28:29 +0200
committerJeff King <peff@peff.net>2012-10-25 06:06:00 -0400
commitce1459f740a591c63697ff6ff3c106123630539c (patch)
treef457642e490ecc8d1f94a5254f6646679610b8a7 /git-send-email.perl
parentce5478006c7318f12e6b2abeb0c0477009db63b5 (diff)
downloadgit-ce1459f740a591c63697ff6ff3c106123630539c.tar.gz
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 <krzysiek@podlesie.net> Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 1574675d1d..5a7c29db93 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -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 {