mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-14 10:07:32 +01:00
Merge branch '3.0'
This commit is contained in:
commit
901c055a15
@ -1458,7 +1458,9 @@ abstract class ASN1
|
||||
* subject=/O=organization/OU=org unit/CN=common name
|
||||
* issuer=/O=organization/CN=common name
|
||||
*/
|
||||
$temp = preg_replace('#.*?^-+[^-]+-+[\r\n ]*$#ms', '', $str, 1);
|
||||
$temp = strlen($str) <= ini_get('pcre.backtrack_limit') ?
|
||||
preg_replace('#.*?^-+[^-]+-+[\r\n ]*$#ms', '', $str, 1) :
|
||||
$str;
|
||||
// remove the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- stuff
|
||||
$temp = preg_replace('#-+[^-]+-+#', '', $temp);
|
||||
// remove new lines
|
||||
|
Loading…
Reference in New Issue
Block a user