Commit bc2bcf2a authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3261 trimming all whitespaces in cred_decrypt

parent 9fd4407e
......@@ -236,7 +236,7 @@ sub encrypt_passwords {
# Print reminder
print "
Please adapt your http fusiondirectory location declaration to include the newly
created $fd_config.
created $fd_secrets.
Example:
......
......@@ -3293,7 +3293,7 @@ function cred_decrypt($input, $password)
$key = substr($data, 0, $key_len);
$iv = substr($data, $key_len, $iv_len);
return rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $input, MCRYPT_MODE_CBC, $iv), "\0\3\4\n");
return rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $input, MCRYPT_MODE_CBC, $iv), "\x00..\x1F");
}
......
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