diff --git a/drivers/php/Wappalyzer.php b/drivers/php/Wappalyzer.php index b2fe9f24d..922476018 100644 --- a/drivers/php/Wappalyzer.php +++ b/drivers/php/Wappalyzer.php @@ -129,8 +129,10 @@ class Wappalyzer $result->html = substr($response, $headerSize); $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 ) { diff --git a/share/apps.json b/share/apps.json index 601478b15..3651c0f4e 100644 --- a/share/apps.json +++ b/share/apps.json @@ -2617,7 +2617,7 @@ "headers": { "Server": "Ubuntu", "X-Powered-By": "Ubuntu" } }, "uCore": { - "website": "ucorecms.org", + "website": "ucore.io", "cats": [ 1, 18 ], "headers": { "Set-Cookie": "ucore" }, "meta": { "generator": "uCore PHP Framework" },