Fixed strict warning

main
Wouter van Dongen 11 years ago
parent f935120ea9
commit d571b0c410

@ -131,7 +131,8 @@ class Wappalyzer
$result->html = mb_check_encoding($result->html, 'UTF-8') ? $result->html : utf8_encode($result->html); $result->html = mb_check_encoding($result->html, 'UTF-8') ? $result->html : utf8_encode($result->html);
$headers = trim(substr($response, 0, $headerSize)); $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); $lines = array_slice(explode("\r\n", $headers), 1);
foreach ( $lines as $line ) { foreach ( $lines as $line ) {