]> git.mxchange.org Git - friendica.git/commitdiff
Workaround for bad configured servers
authorMichael Vogel <icarus@dabo.de>
Sat, 24 Oct 2015 18:41:21 +0000 (20:41 +0200)
committerMichael Vogel <icarus@dabo.de>
Sat, 24 Oct 2015 18:41:21 +0000 (20:41 +0200)
include/socgraph.php

index b0f0c8672ff6ddf34da14fa22a4d18ab9cd122b5..225acda4a2d17fe5c36aeafc2d7ca2d33697d60c 100644 (file)
@@ -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();