]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: cached data doesn't need to get unserialized anymore
authorrabuzarus <>
Sun, 4 Dec 2016 14:15:23 +0000 (15:15 +0100)
committerrabuzarus <>
Sun, 4 Dec 2016 14:15:23 +0000 (15:15 +0100)
include/identity.php

index 288f93aaf97e0aa54875a9b73977a89e063d9e2f..a792c4714426a9a1334442a90f07620177f9ca85 100644 (file)
@@ -813,7 +813,6 @@ function zrl_init(&$a) {
 
                $result = Cache::get("gprobe:".$urlparts["host"]);
                if (!is_null($result)) {
-                       $result = unserialize($result);
                        if (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;