Merge pull request #382 from Telford-Rowley/master

Http Response Headers Processing bug fix
main
Elbert Alias 11 years ago
commit 9614604c5b

@ -130,7 +130,9 @@ class Wappalyzer
$result->html = mb_check_encoding($result->html, 'UTF-8') ? $result->html : utf8_encode($result->html);
$lines = array_slice(explode("\r\n", trim(substr($response, 0, $headerSize))), 1);
$headers = trim(substr($response, 0, $headerSize));
$headers = end(preg_split('/^\s*$/m', $headers));
$lines = array_slice(explode("\r\n", $headers), 1);
foreach ( $lines as $line ) {
if ( strpos(trim($line), ': ') !== false ) {

Loading…
Cancel
Save