From d571b0c41000adae51bbe6220431823c7b81819e Mon Sep 17 00:00:00 2001 From: Wouter van Dongen Date: Thu, 17 Apr 2014 17:40:15 +0200 Subject: [PATCH] Fixed strict warning --- drivers/php/Wappalyzer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) {