mirror of
https://github.com/git/git.git
synced 2025-04-17 17:35:19 +00:00
Merge branch 'hb/maint-send-email-quote-recipients' into maint
* hb/maint-send-email-quote-recipients: Fix recipient santitization
This commit is contained in:
commit
93c7b9c159
@ -633,7 +633,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/;
|
||||
$recipient_name =~ s/(["\\\r])/\\$1/g;
|
||||
$recipient_name = "\"$recipient_name\"";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user