diff options
author | Friendika <info@friendika.com> | 2011-08-21 17:24:50 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-21 17:24:50 -0700 |
commit | 213f832443944a8e3555ecf6b5951b71596fea6f (patch) | |
tree | de1a180ebdddc2d38aa29807936bdd66f2df6528 /include/diaspora.php | |
parent | e3eb4c131f7730151b8df865cb14f6767f2eface (diff) | |
download | volse-hubzilla-213f832443944a8e3555ecf6b5951b71596fea6f.tar.gz volse-hubzilla-213f832443944a8e3555ecf6b5951b71596fea6f.tar.bz2 volse-hubzilla-213f832443944a8e3555ecf6b5951b71596fea6f.zip |
add trailing slash to diaspora notify url on send
Diffstat (limited to 'include/diaspora.php')
-rw-r--r-- | include/diaspora.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index 9b9d2cf8d..541172911 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -83,7 +83,9 @@ EOT; $b64_encrypted_outer_key_bundle = base64_encode($encrypted_outer_key_bundle); $encrypted_header_json_object = json_encode(array('aes_key' => base64_encode($encrypted_outer_key_bundle), 'ciphertext' => base64_encode($ciphertext))); - $encrypted_header = '<encrypted_header>' . base64_encode($encrypted_header_json_object) . '</encrypted_header>'; + $cipher_json = base64_encode($encrypted_header_json_object); + + $encrypted_header = '<encrypted_header>' . $cipher_json . '</encrypted_header>'; $magic_env = <<< EOT <?xml version='1.0' encoding='UTF-8'?> @@ -798,7 +800,7 @@ function diaspora_share($me,$contact) { $slap = 'xml=' . urlencode(urlencode(diaspora_msg_build($msg,$me,$contact,$me['prvkey'],$contact['pubkey']))); - post_url($contact['notify'],$slap); + post_url($contact['notify'] . '/',$slap); $return_code = $a->get_curl_code(); return $return_code; } @@ -829,7 +831,7 @@ function diaspora_send_status($item,$owner,$contact) { $slap = 'xml=' . urlencode(urlencode(diaspora_msg_build($msg,$owner,$contact,$owner['uprvkey'],$contact['pubkey']))); - post_url($contact['notify'],$slap); + post_url($contact['notify'] . '/',$slap); $return_code = $a->get_curl_code(); logger('diaspora_send_status: returns: ' . $return_code); return $return_code; @@ -886,7 +888,7 @@ function diaspora_send_followup($item,$owner,$contact) { $slap = 'xml=' . urlencode(urlencode(diaspora_msg_build($msg,$owner,$contact,$owner['uprvkey'],$contact['pubkey']))); - post_url($contact['notify'],$slap); + post_url($contact['notify'] . '/',$slap); $return_code = $a->get_curl_code(); logger('diaspora_send_status: returns: ' . $return_code); return $return_code; @@ -962,7 +964,7 @@ function diaspora_send_relay($item,$owner,$contact) { $slap = 'xml=' . urlencode(urlencode(diaspora_msg_build($msg,$owner,$contact,$owner['uprvkey'],$contact['pubkey']))); - post_url($contact['notify'],$slap); + post_url($contact['notify'] . '/',$slap); $return_code = $a->get_curl_code(); logger('diaspora_send_status: returns: ' . $return_code); return $return_code; |