[HtmlSanitizer] reject URLs with URL-encoded non UTF-8 characters in the host part #37170
Annotations
5 errors and 1 warning
InvalidNullableReturnType:
src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php#L150
src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php:150:71: InvalidNullableReturnType: The declared return type 'string' for Symfony\Component\HtmlSanitizer\TextSanitizer\UrlSanitizer::decodeUnreservedCharacters is not nullable, but 'null|string' contains null (see https://psalm.dev/144)
|
NullableReturnStatement:
src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php#L152
src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php:152:16: NullableReturnStatement: The declared return type 'string' for Symfony\Component\HtmlSanitizer\TextSanitizer\UrlSanitizer::decodeUnreservedCharacters is not nullable, but the function returns 'null|string' (see https://psalm.dev/139)
|
InvalidNullableReturnType:
src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php#L150
src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php:150:71: InvalidNullableReturnType: The declared return type 'string' for Symfony\Component\HtmlSanitizer\TextSanitizer\UrlSanitizer::decodeUnreservedCharacters is not nullable, but 'null|string' contains null (see https://psalm.dev/144)
|
NullableReturnStatement:
src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php#L152
src/Symfony/Component/HtmlSanitizer/TextSanitizer/UrlSanitizer.php:152:16: NullableReturnStatement: The declared return type 'string' for Symfony\Component\HtmlSanitizer\TextSanitizer\UrlSanitizer::decodeUnreservedCharacters is not nullable, but the function returns 'null|string' (see https://psalm.dev/139)
|
Psalm
Process completed with exit code 2.
|
Psalm
The Ubuntu-20.04 brownout takes place from 2025-02-01. For more details, see https://github.com/actions/runner-images/issues/11101
|