[Rt-commit] rt branch, 4.2/defaults-in-signencrypt, created. rt-4.2.10-236-g9250a1c

Alex Vandiver alexmv at bestpractical.com
Thu Apr 9 16:37:42 EDT 2015


The branch, 4.2/defaults-in-signencrypt has been created
        at  9250a1c71d0b76563faa8fb86f8d939cca6dd354 (commit)

- Log -----------------------------------------------------------------
commit 9250a1c71d0b76563faa8fb86f8d939cca6dd354
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Mar 14 15:04:37 2014 -0400

    Actually provide defaults here, necessary for to/from defaulting
    
    All callsites pass both params, and the default kicks in deeper already
    anyways, but this ensures that from/to values are defaulted correctly.

diff --git a/lib/RT/Crypt.pm b/lib/RT/Crypt.pm
index cad86d2..98d5020 100644
--- a/lib/RT/Crypt.pm
+++ b/lib/RT/Crypt.pm
@@ -430,7 +430,11 @@ An un-localized error message desribing the problem.
 
 sub SignEncrypt {
     my $self = shift;
-    my %args = (@_);
+    my %args = (
+        Sign => 1,
+        Encrypt => 1,
+        @_,
+    );
 
     my $entity = $args{'Entity'};
     if ( $args{'Sign'} && !defined $args{'Signer'} ) {

-----------------------------------------------------------------------


More information about the rt-commit mailing list