From 3902dc963a4e5bcae97aa236e5982aadb0568490 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 5 Oct 2015 11:22:23 +0200 Subject: [PATCH] Diaspora encloses magic envelope in ??!!?! --- plugins/Diaspora/DiasporaPlugin.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/Diaspora/DiasporaPlugin.php b/plugins/Diaspora/DiasporaPlugin.php index 75dba7384a..6f955fadcf 100644 --- a/plugins/Diaspora/DiasporaPlugin.php +++ b/plugins/Diaspora/DiasporaPlugin.php @@ -108,6 +108,9 @@ class DiasporaPlugin extends Plugin * Constructing the encryption header */ + // For some reason it's supposed to be inside an + $xs->elementStart('entry', array('xmlns'=>'http://www.w3.org/2005/Atom')); + /** * Choose an AES key and initialization vector, suitable for the * aes-256-cbc cipher. I shall refer to this as the “inner key” @@ -214,6 +217,8 @@ class DiasporaPlugin extends Plugin $xs->element('me:sig', null, $magic_env->getSignature()); $xs->elementEnd('me:env'); + $xs->elementEnd('entry'); + return false; } -- 2.39.5