From 348bd9d3987c42b9204519b22b7238e8dc19e514 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Sun, 17 Jul 2011 23:12:50 +0000 Subject: TSecurityManager: remove additional right padding added by mcrypt_decrypt TSecurityManagerTest: loop through different string length to take account of mcrypt's block cipher padding TAPCCacheTest: fixed static member usage THttpRequestTest: fixed testRequestWithUrlMapping test --- framework/Security/TSecurityManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework') diff --git a/framework/Security/TSecurityManager.php b/framework/Security/TSecurityManager.php index d77e9b88..e2bdfa7a 100644 --- a/framework/Security/TSecurityManager.php +++ b/framework/Security/TSecurityManager.php @@ -195,7 +195,7 @@ class TSecurityManager extends TModule $decrypted = mdecrypt_generic($module, substr($data, $ivSize)); mcrypt_generic_deinit($module); mcrypt_module_close($module); - return $decrypted; + return rtrim($decrypted, "\0"); } /** -- cgit v1.2.3