Control: tags -1 +patch

Hi,

the attached patch seems to fix the issue.
Cf. <URL:http://de2.php.net/manual/en/function.mcrypt-decrypt.php>

Best regards,

     Andi
Index: gosa-2.7.4+reloaded1/gosa-core/include/functions.inc
===================================================================
--- gosa-2.7.4+reloaded1.orig/gosa-core/include/functions.inc
+++ gosa-2.7.4+reloaded1/gosa-core/include/functions.inc
@@ -3334,7 +3334,7 @@ function cred_decrypt($input,$password)
   $size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
   $iv = mcrypt_create_iv($size, MCRYPT_DEV_RANDOM);
 
-  return mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $password, pack("H*", $input), MCRYPT_MODE_ECB, $iv);
+  return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $password, pack("H*", $input), MCRYPT_MODE_ECB, $iv));
 }
 
 

Reply via email to