Base64 must not have \n

This commit is contained in:
Xavier Guimard 2016-05-31 20:41:33 +00:00
parent 4a18a3f528
commit 437fef99b6

View File

@ -59,7 +59,7 @@ sub encrypt {
my $l = bytes::length($data) % 16;
$data .= "\0" x ( 16 - $l ) unless ( $l == 0 );
eval { $data = encode_base64( $self->_getCipher->encrypt($data) ); };
eval { $data = encode_base64( $self->_getCipher->encrypt($data), '' ); };
if ($@) {
$msg = "Crypt::Rijndael error : $@";
return undef;