From ddc8f069f2f4a6571b162061497e91e0497103b3 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 24 Oct 2015 20:41:21 +0200 Subject: [PATCH] Workaround for bad configured servers --- include/socgraph.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/socgraph.php b/include/socgraph.php index b0f0c8672f..225acda4a2 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -748,8 +748,11 @@ function poco_check_server($server_url, $network = "", $force = false) { } if (!$serverret["success"] OR ($serverret["body"] == "") OR (sizeof($xmlobj) == 0) OR !is_object($xmlobj)) { - $last_failure = datetime_convert(); - $failure = true; + // Workaround for bad configured servers (known nginx problem) + if ($serverret["debug"]["http_code"] != "403") { + $last_failure = datetime_convert(); + $failure = true; + } } elseif ($network == NETWORK_DIASPORA) $last_contact = datetime_convert(); -- 2.39.5