Commit 1ae453ee authored by Xavier Guimard's avatar Xavier Guimard

Base64 must not have \n

git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/branches/lemonldap-ng_version_1_4-bugfixes@5156 1dbb9719-a921-0410-b57f-c3a383c2c641
parent fb85dbe0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment