Merge pull request #2992 from rabuzarus/20161204_-_fix_cache_call_in_identity.php

Bugfix: cached data doesn't need to get unserialized anymore
This commit is contained in:
Tobias Diekershoff 2016-12-04 17:48:46 +01:00 committed by GitHub
commit acf2e42e24
1 changed files with 0 additions and 1 deletions

View 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;