]> git.mxchange.org Git - friendica.git/commitdiff
Changes:
authorRoland Häder <roland@mxchange.org>
Wed, 14 Sep 2022 23:43:51 +0000 (01:43 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2023 19:44:14 +0000 (21:44 +0200)
- reformatted array a bit
- double-quote to single

src/Protocol/Diaspora.php

index affb3cf8724e55b4f0bd8560d0f8e4930e7a8166..758e85e9d01f155f42cb5a67c7ec4e377b24a7b1 100644 (file)
@@ -2839,7 +2839,7 @@ class Diaspora
        public static function buildMagicEnvelope(string $msg, array $user): string
        {
                $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));
                $type = 'application/xml';
@@ -2857,11 +2857,11 @@ class Diaspora
 
                $xmldata = [
                        'me:env' => [
-                               'me:data' => $data,
-                               '@attributes' => ['type' => $type],
-                               'me:encoding' => $encoding,
-                               'me:alg' => $alg,
-                               'me:sig' => $sig,
+                               'me:data'      => $data,
+                               '@attributes'  => ['type' => $type],
+                               'me:encoding'  => $encoding,
+                               'me:alg'       => $alg,
+                               'me:sig'       => $sig,
                                '@attributes2' => ['key_id' => $key_id]
                        ]
                ];