aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_confirm.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-09-15 10:39:41 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-09-15 10:39:41 +0200
commit019b735ec75989336826e5ad5db6377803ecb050 (patch)
tree15b642ec6e24d07d9d5c6009ec2ebf2a0b720742 /mod/dfrn_confirm.php
parent7e806429cca6ac39a9ef1bd1fd400d03e626389b (diff)
parentd284f8017cefb79571fe51c4ae3f85b9b4e517c9 (diff)
downloadvolse-hubzilla-019b735ec75989336826e5ad5db6377803ecb050.tar.gz
volse-hubzilla-019b735ec75989336826e5ad5db6377803ecb050.tar.bz2
volse-hubzilla-019b735ec75989336826e5ad5db6377803ecb050.zip
Merge branch 'newui' of github.com:fabrixxm/friendika into newui
Diffstat (limited to 'mod/dfrn_confirm.php')
-rw-r--r--mod/dfrn_confirm.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php
index 4dacb5d81..180e8ff31 100644
--- a/mod/dfrn_confirm.php
+++ b/mod/dfrn_confirm.php
@@ -566,7 +566,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
dbesc($newurl),
intval($local_uid)
);
- if(! count($r)) {
+ if(! count($ret)) {
// this is either a bogus confirmation (?) or we deleted the original introduction.
$message = t('Contact record was not found for you on our site.');
xml_status(3,$message);
@@ -581,6 +581,11 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
$foreign_pubkey = $ret[0]['site-pubkey'];
$dfrn_record = $ret[0]['id'];
+ if(! $foreign_pubkey) {
+ $message = sprintf( t('Site public key not available in contact record for URL %s.'), $newurl);
+ xml_status(3,$message);
+ }
+
$decrypted_dfrn_id = "";
openssl_public_decrypt($dfrn_id,$decrypted_dfrn_id,$foreign_pubkey);