[Rt-commit] r7393 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Thu Mar 29 11:53:13 EDT 2007
Author: ruz
Date: Thu Mar 29 11:53:12 2007
New Revision: 7393
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm
Log:
r4849 at cubic-pc: cubic | 2007-03-29 19:47:03 +0400
* if trust char is empty then use '-' as substitution as
this value is closest one.
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Crypt/GnuPG.pm Thu Mar 29 11:53:12 2007
@@ -920,6 +920,8 @@
);
sub _ConvertTrustChar {
my $value = shift;
+ return $mapping{'-'} unless $value;
+
$value = substr $value, 0, 1;
return $mapping{ $value } || $mapping{'o'};
}
More information about the Rt-commit
mailing list