From 54d96da94ab05297226a5978999fbf2221f5ca49 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 10 Jul 2019 05:16:50 +0200 Subject: [PATCH] Fix fatal error with incomplete contact data upon delivery --- src/Protocol/DFRN.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 3aa3ab957c..44cd21c391 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -1455,6 +1455,11 @@ class DFRN $dest_url = ($public_batch ? $contact["batch"] : $contact["notify"]); + if (empty($dest_url)) { + Logger::info('Empty destination', ['contact' => $contact]); + return -24; + } + $content_type = ($public_batch ? "application/magic-envelope+xml" : "application/json"); $postResult = Network::post($dest_url, $envelope, ["Content-Type: ".$content_type]); -- 2.39.5