[Rt-commit] rt branch, 3.999-trunk, updated. 144befc2fa643ef27bc1c870a5a7b15654282618
sartak at bestpractical.com
sartak at bestpractical.com
Mon Dec 14 13:48:31 EST 2009
The branch, 3.999-trunk has been updated
via 144befc2fa643ef27bc1c870a5a7b15654282618 (commit)
from b15a0418eb6d16f48a07362a0aa8125760339803 (commit)
Summary of changes:
lib/RT/Crypt/GnuPG.pm | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 144befc2fa643ef27bc1c870a5a7b15654282618
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon Dec 14 13:48:06 2009 -0500
Allow passing strings to check_recipients
diff --git a/lib/RT/Crypt/GnuPG.pm b/lib/RT/Crypt/GnuPG.pm
index 8c8cadb..7462a1a 100644
--- a/lib/RT/Crypt/GnuPG.pm
+++ b/lib/RT/Crypt/GnuPG.pm
@@ -1889,7 +1889,11 @@ sub check_recipients {
my ( $status, @issues ) = ( 1, () );
my %seen;
- foreach my $address ( grep !$seen{ lc $_ }++, map $_->address, @recipients ) {
+ my @addresses = grep { !$seen{ lc $_ }++ }
+ map { ref($_) ? $_->address : $_ }
+ @recipients;
+
+ foreach my $address (@addresses) {
my %res = get_keys_for_encryption($address);
if ( $res{'info'}
&& @{ $res{'info'} } == 1
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list