From: Mikael Nordfeldth Date: Mon, 5 Oct 2015 09:22:23 +0000 (+0200) Subject: Diaspora encloses magic envelope in ??!!?! X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3902dc963a4e5bcae97aa236e5982aadb0568490;p=quix0rs-gnu-social.git Diaspora encloses magic envelope in ??!!?! --- 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; }