"Do NOT trim decrypted string, as it contains binary data (it is compressed) and can be demaged by that.

This might be a problem if a mcrypt alogrithm is used, that pad decrypted strings with \"\0\". (I tried rtrim($str,\"\0\"), but that still failed)"
This commit is contained in:
Ralf Becker 2009-03-27 15:35:54 +00:00
parent c2dd0ab7d1
commit 7caeef71fd

View File

@ -119,7 +119,7 @@ class etemplate_request
// decrypt the data if available
if (self::init_crypt())
{
$id = trim(mdecrypt_generic(self::$mcrypt,$id));
$id = mdecrypt_generic(self::$mcrypt,$id);
}
// uncompress the data if available
if (self::$compression_level && function_exists('gzcompress'))