Permalink
Browse files

Fix infinite parsing

  • Loading branch information...
1 parent 37704d2 commit 999008b7b93de798f5a5b9d4566d871fa93f39a2 @cdujeu cdujeu committed Sep 28, 2016
Showing with 1 addition and 5 deletions.
  1. +1 −5 core/src/core/src/pydio/Core/Utils/Crypto/ZeroPaddingRijndael.php
@@ -74,10 +74,6 @@ function _pad($text)
* @return string
*/
function _unpad($text) {
- $trimed = trim($text, "\0");
- while($text === $trimed){
- $trimed = trim($text, "\0");
- }
- return $trimed;
+ return trim($text, "\0");
}
}

0 comments on commit 999008b

Please sign in to comment.