X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Flib%2FRT%2FCrypt.pm;h=a5ae1f1786c99382d18a23f65ef57f825e26a116;hp=cad86d24feb899701e95175f9d2a3a86539c6902;hb=187086c479a09629b7d180eec513fb7657f4e291;hpb=1c538bfabc2cd31f27067505f0c3d1a46cba6ef0 diff --git a/rt/lib/RT/Crypt.pm b/rt/lib/RT/Crypt.pm index cad86d24f..a5ae1f178 100644 --- a/rt/lib/RT/Crypt.pm +++ b/rt/lib/RT/Crypt.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -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'} ) { @@ -545,7 +549,7 @@ sub VerifyDecrypt { my $modify = $res{status_on}->head->modify; $res{status_on}->head->modify(1); $res{status_on}->head->add( - "X-RT-" . $protected->{'Protocol'} . "-Status" => $res{'status'} + "X-RT-" . $protected->{'Protocol'} . "-Status" => Encode::encode( "UTF-8", $res{'status'} ) ); $res{status_on}->head->modify($modify);