Skip to content

Commit

Permalink
Merge pull request #27 from Stichoza/patch-1
Browse files Browse the repository at this point in the history
Change split with preg_split
  • Loading branch information
robrichards committed Dec 13, 2016
2 parents b5c9de9 + 76b572d commit d18b46a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WSSESoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function signSoapDoc($objKey, $options = null)
$tokenRef->appendChild($reference);
$x509 = openssl_x509_parse($objKey->getX509Certificate());
$keyid = $x509['extensions']['subjectKeyIdentifier'];
$arkeyid = split(':', $keyid);
$arkeyid = explode(':', $keyid);
$data = '';
foreach ($arkeyid as $hexchar) {
$data .= chr(hexdec($hexchar));
Expand Down Expand Up @@ -345,7 +345,7 @@ public function addEncryptedKey($node, $key, $token, $options = null)
$tokenRef->appendChild($reference);
$x509 = openssl_x509_parse($token->getX509Certificate());
$keyid = $x509['extensions']['subjectKeyIdentifier'];
$arkeyid = split(':', $keyid);
$arkeyid = explode(':', $keyid);
$data = '';
foreach ($arkeyid as $hexchar) {
$data .= chr(hexdec($hexchar));
Expand Down

0 comments on commit d18b46a

Please sign in to comment.