Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 999008b

Browse files
committed
Fix infinite parsing
1 parent 37704d2 commit 999008b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

core/src/core/src/pydio/Core/Utils/Crypto/ZeroPaddingRijndael.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ function _pad($text)
7474
* @return string
7575
*/
7676
function _unpad($text) {
77-
$trimed = trim($text, "\0");
78-
while($text === $trimed){
79-
$trimed = trim($text, "\0");
80-
}
81-
return $trimed;
77+
return trim($text, "\0");
8278
}
8379
}

0 commit comments

Comments
 (0)