From cc4b481bc904603f9e1cea3a03cad78a652c9ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Fri, 12 May 2017 21:02:58 +0200 Subject: [PATCH] fixed parser error, need parentheses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- include/identity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/identity.php b/include/identity.php index 264736e97..3ab25cdc4 100644 --- a/include/identity.php +++ b/include/identity.php @@ -879,7 +879,7 @@ function zrl_init(App $a) { $urlparts = parse_url($tmp_str); $result = Cache::get("gprobe:" . $urlparts["host"]); - if (!is_null($result)) && (in_array($result["network"], array(NETWORK_FEED, NETWORK_PHANTOM))) { + if ((!is_null($result)) && (in_array($result["network"], array(NETWORK_FEED, NETWORK_PHANTOM)))) { logger("DDoS attempt detected for " . $urlparts["host"] . " by " . $_SERVER["REMOTE_ADDR"] . ". server data: " . print_r($_SERVER, true), LOGGER_DEBUG); return; }