aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-21 04:53:43 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-21 04:53:43 -0700
commit5edee3c4d1f84c07c1c54775072601188075a542 (patch)
treec3b8167923bbb4c77eee9a727b38b1c93ad3d26b /library
parent39b19cd0890754c947414ed9eb6d688e12702e0d (diff)
downloadvolse-hubzilla-5edee3c4d1f84c07c1c54775072601188075a542.tar.gz
volse-hubzilla-5edee3c4d1f84c07c1c54775072601188075a542.tar.bz2
volse-hubzilla-5edee3c4d1f84c07c1c54775072601188075a542.zip
magic-envelope verification, status.net appears to do it wrong.
Ultimately we need to do it right (or why bother having a spec?), and fallback to doing it wrong if we're talking to a broken system - which ironically seems to include most of the federated social web projects.
Diffstat (limited to 'library')
-rw-r--r--library/asn1.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/asn1.php b/library/asn1.php
index 132b03248..713978e8c 100644
--- a/library/asn1.php
+++ b/library/asn1.php
@@ -186,7 +186,7 @@ class ASN_BASE {
case ASN_BOOLEAN:
return new ASN_BOOLEAN((bool)$data);
case ASN_INTEGER:
- return new ASN_INTEGER(strtr(base64_encode($data),'+/=','-_,'));
+ return new ASN_INTEGER(strtr(base64_encode($data),'+/','-_'));
// return new ASN_INTEGER(ord($data));
case ASN_BIT_STR:
return new ASN_BIT_STR(self::parseASNString($data, $level+1, $maxLevels));