The generated XML is now valid and it seems to work.

This commit is contained in:
Michael Vogel 2015-11-23 23:49:14 +01:00
parent 75f1a17f7e
commit 7d7e2e74f4
4 changed files with 30 additions and 29 deletions

View file

@ -66,8 +66,6 @@ function get_salmon_key($uri,$keyhash) {
function slapper($owner,$url,$slap) {
logger('slapper called for '.$url.'. Data: ' . $slap);
// does contact have a salmon endpoint?
if(! strlen($url))
@ -97,6 +95,8 @@ EOT;
$slap = str_replace('<entry>',$namespaces,$slap);
logger('slapper called for '.$url.'. Data: ' . $slap);
// create a magic envelope
$data = base64url_encode($slap);