diff --git a/module/Core/src/Util/UrlValidator.php b/module/Core/src/Util/UrlValidator.php index 1f590de5..e1ae159b 100644 --- a/module/Core/src/Util/UrlValidator.php +++ b/module/Core/src/Util/UrlValidator.php @@ -51,7 +51,7 @@ class UrlValidator implements UrlValidatorInterface, RequestMethodInterface } $body = $response->getBody()->__toString(); - preg_match('/(.+)<\/title>/i', $body, $matches); + preg_match('/<title[^>]*>(.*?)<\/title>/i', $body, $matches); return $matches[1] ?? null; }