Diaspora encloses magic envelope in <atom:entry>??!!?!

这个提交包含在:
Mikael Nordfeldth 2015-10-05 11:22:23 +02:00
父节点 ec19661312
当前提交 3902dc963a

查看文件

@ -108,6 +108,9 @@ class DiasporaPlugin extends Plugin
* Constructing the encryption header
*/
// For some reason it's supposed to be inside an <atom:entry>
$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;
}