Fix sanitize_uid
git-svn-id: svn://svn.debian.org/pgp-tools/trunk@16
b513b33f-fedd-0310-b452-
c3deb5f4c849
sub sanitize_uid($) {
my ($uid) = @_;
- my $good_uid =~ tr#/:\\#_#;
+ my $good_uid = $uid;
+ $good_uid =~ tr#/:\\#_#;
trace2("[sanitize_uid] changed UID from $uid to $good_uid.\n") if $good_uid ne $uid;
return $good_uid;
};
trace("UID: $uid->{'text'}\n");
unless ($uid->{'text'} =~ /@/) {
my $attach = ask("UID $uid->{'text'} is no email address, attach it to every email sent?", 1);
- push @attached, $uid;
+ push @attached, $uid if $attach;
};
};