- πΊπ¦Ukraine yuriy.korzhov
Correct patch with code updates from next releases.
Current was 9.4.x
Something in my site ends up calling Html::escape(NULL), and because the test server is running php8.1 I get a deprecation error which causes general mayhem with the site. I cannot see why this NULL is passed in.
Unknown.
Modify the function to be more forgiving of unexpected input:
public static function escape($text) {
if (empty($text)) return '';
return htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
}
If this is a general problem, consider whether other calls (e.g. to entity decode) might also benefit.
Closed: duplicate
9.4
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Correct patch with code updates from next releases.
Current was 9.4.x