I have noticed that on such data, the wordwrap function should not be used after the fixLE function. Si I have changed th function to:
Code: Select all
public function encode8Bit($data, $chunk=76, $le="\r\n")
{
if(strpos($data, "-----BEGIN PGP MESSAGE-----") === 0)
return $this->fixLE($data,$le);
else
return $this->fixLE(wordwrap($data, $chunk-2, $le, 1), $le);
}All the best, end thanks for such a great work !