From 9106baf10f5d261b866028826c427636302c0e37 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 12 Jul 2015 11:24:01 +0200 Subject: [PATCH] Some more test code removed --- include/onepoll.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/onepoll.php b/include/onepoll.php index 57b3521d53..eb52a97ead 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -237,11 +237,11 @@ function onepoll_run(&$argv, &$argc){ if(($contact['duplex']) && strlen($contact['prvkey'])) { openssl_private_decrypt($sent_dfrn_id,$final_dfrn_id,$contact['prvkey']); openssl_private_decrypt($challenge,$postvars['challenge'],$contact['prvkey']); - } elseif($contact['pubkey']) { + } + else { openssl_public_decrypt($sent_dfrn_id,$final_dfrn_id,$contact['pubkey']); openssl_public_decrypt($challenge,$postvars['challenge'],$contact['pubkey']); - } else - logger("No private or public key for contact ".$contact['id']." ".$contact['url']); + } $final_dfrn_id = substr($final_dfrn_id, 0, strpos($final_dfrn_id, '.'));