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

Commit

Permalink
Fix infinite parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Sep 28, 2016
1 parent 37704d2 commit 999008b
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -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.