From a5483a03c90967eea58f5a0db17c59c4ec3ff2ff Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 6 Nov 2018 21:44:57 -0800 Subject: fix signatures --- Zotlabs/Zot6/HTTPSig.php | 2 +- include/network.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Zotlabs/Zot6/HTTPSig.php b/Zotlabs/Zot6/HTTPSig.php index 6d52e5033..72785b1e9 100644 --- a/Zotlabs/Zot6/HTTPSig.php +++ b/Zotlabs/Zot6/HTTPSig.php @@ -162,7 +162,7 @@ class HTTPSig { if(! $x) { logger('verify failed for ' . $result['signer'] . ' alg=' . $algorithm . (($key['public_key']) ? '' : ' no key')); - $sig_block['signature'] = base64url_encode($sig_block['signature']); + $sig_block['signature'] = base64_encode($sig_block['signature']); logger('affected sigblock: ' . print_r($sig_block,true)); logger('signed_data: ' . print_r($signed_data,true)); logger('headers: ' . print_r($headers,true)); diff --git a/include/network.php b/include/network.php index f976dcc35..d37da05f7 100644 --- a/include/network.php +++ b/include/network.php @@ -233,7 +233,7 @@ function z_post_url($url, $params, $redirects = 0, $opts = array()) { return $ret; if(! array_key_exists('request_target',$opts)) { - $opts['request_target'] = 'get ' . get_request_string($url); + $opts['request_target'] = 'post ' . get_request_string($url); } @curl_setopt($ch, CURLOPT_HEADER, true); -- cgit v1.2.3