mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
"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:
parent
c2dd0ab7d1
commit
7caeef71fd
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user