Commit 9fa6a35a authored by Mike gabriel's avatar Mike gabriel Committed by Benoit Mortier
Browse files

1001_trim-end-of-transmission-ascii-chars-from-mcrypt-decrypt

parent e51cbc5a
......@@ -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\n");
return rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $input, MCRYPT_MODE_CBC, $iv), "\0\3\4\n");
}
......
Supports Markdown
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