]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-send-email.perl
send-email: sanitize_address use qq["foo"], not "\"foo\""
[thirdparty/git.git] / git-send-email.perl
index 1bf090a881831e86148aee857e307f762a2f8924..c012b95560bcc5335c5476c11880fefe9ef8fc66 100755 (executable)
@@ -881,7 +881,7 @@ sub sanitize_address {
        # double quotes are needed if specials or CTLs are included
        elsif ($recipient_name =~ /[][()<>@,;:\\".\000-\037\177]/) {
                $recipient_name =~ s/(["\\\r])/\\$1/g;
-               $recipient_name = "\"$recipient_name\"";
+               $recipient_name = qq["$recipient_name"];
        }
 
        return "$recipient_name $recipient_addr";