summaryrefslogtreecommitdiff
path: root/framework/Security/TSecurityManager.php
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-07-17 23:12:50 +0000
committerctrlaltca@gmail.com <>2011-07-17 23:12:50 +0000
commit348bd9d3987c42b9204519b22b7238e8dc19e514 (patch)
tree5609d43a68b0a523ad2919788ca0070df7e4ec89 /framework/Security/TSecurityManager.php
parent920f78939adcdb62f5e6ac9368928bd3a0fa41fc (diff)
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
Diffstat (limited to 'framework/Security/TSecurityManager.php')
-rw-r--r--framework/Security/TSecurityManager.php2
1 files changed, 1 insertions, 1 deletions
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");
}
/**