Changes:
- reformatted array a bit - double-quote to single
This commit is contained in:
parent
241c221e4b
commit
e9a8882f84
1 changed files with 6 additions and 6 deletions
|
@ -2839,7 +2839,7 @@ class Diaspora
|
||||||
public static function buildMagicEnvelope(string $msg, array $user): string
|
public static function buildMagicEnvelope(string $msg, array $user): string
|
||||||
{
|
{
|
||||||
$b64url_data = Strings::base64UrlEncode($msg);
|
$b64url_data = Strings::base64UrlEncode($msg);
|
||||||
$data = str_replace(["\n", "\r", " ", "\t"], ['', '', '', ''], $b64url_data);
|
$data = str_replace(["\n", "\r", ' ', "\t"], ['', '', '', ''], $b64url_data);
|
||||||
|
|
||||||
$key_id = Strings::base64UrlEncode(self::myHandle($user));
|
$key_id = Strings::base64UrlEncode(self::myHandle($user));
|
||||||
$type = 'application/xml';
|
$type = 'application/xml';
|
||||||
|
@ -2857,11 +2857,11 @@ class Diaspora
|
||||||
|
|
||||||
$xmldata = [
|
$xmldata = [
|
||||||
'me:env' => [
|
'me:env' => [
|
||||||
'me:data' => $data,
|
'me:data' => $data,
|
||||||
'@attributes' => ['type' => $type],
|
'@attributes' => ['type' => $type],
|
||||||
'me:encoding' => $encoding,
|
'me:encoding' => $encoding,
|
||||||
'me:alg' => $alg,
|
'me:alg' => $alg,
|
||||||
'me:sig' => $sig,
|
'me:sig' => $sig,
|
||||||
'@attributes2' => ['key_id' => $key_id]
|
'@attributes2' => ['key_id' => $key_id]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue