diff --git a/drivers/php/Wappalyzer.php b/drivers/php/Wappalyzer.php index 922476018..d05ad19e9 100644 --- a/drivers/php/Wappalyzer.php +++ b/drivers/php/Wappalyzer.php @@ -131,7 +131,8 @@ class Wappalyzer $result->html = mb_check_encoding($result->html, 'UTF-8') ? $result->html : utf8_encode($result->html); $headers = trim(substr($response, 0, $headerSize)); - $headers = end(preg_split('/^\s*$/m', $headers)); + $headers = preg_split('/^\s*$/m', $headers); + $headers = end($headers); $lines = array_slice(explode("\r\n", $headers), 1); foreach ( $lines as $line ) {