fix(cvedetails,tldrtech) (#3735)

This commit is contained in:
Dag 2023-10-10 21:41:57 +02:00 committed by GitHub
parent 143f90da60
commit b6a9baff94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 75 additions and 79 deletions

View file

@ -13,6 +13,7 @@ final class CloudFlareException extends HttpException
'<title>Please Wait...',
'<title>Attention Required!',
'<title>Security | Glassdoor',
'<title>Access denied</title>', // cf as seen on patreon.com
];
foreach ($cloudflareTitles as $cloudflareTitle) {
if (str_contains($response->getBody(), $cloudflareTitle)) {

View file

@ -140,7 +140,7 @@ function _sanitize_path_name(string $s, string $pathName): string
}
/**
* This is buggy because strip tags removes a lot that isn't html
* This is buggy because strip_tags() removes a lot that isn't html
*/
function is_html(string $text): bool
{