Merge branch 'hb/maint-send-email-quote-recipients' into maint

* hb/maint-send-email-quote-recipients:
  Fix recipient santitization
This commit is contained in:
Junio C Hamano 2008-05-25 22:34:20 -07:00
Родитель 6abf189506 18023c2065
Коммит 93c7b9c159
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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\"";
}