tschoffelen / php-pkpass

💳 PHP class for creating passes for Wallet on iOS.
https://includable.com
MIT License
908 stars 187 forks source link

Change convertPEMtoDER #18

Closed foxwebsrl closed 11 years ago

foxwebsrl commented 11 years ago

protected function convertPEMtoDER($signature) { $begin = 'filename="smime.p7s"'; $end = '------'; $signature = substr($signature, strpos($signature, $begin)+strlen($begin));
$signature = substr($signature, 0, strpos($signature, $end)); $signature = trim($signature); $signature = base64_decode($signature);

    return $signature;
}
tschoffelen commented 11 years ago

Updated the code. Thanks!

lock[bot] commented 6 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.