Merge branch 'rhymix:master' into master

This commit is contained in:
Lastorder 2025-10-13 20:09:50 +09:00 committed by GitHub
commit a5c3dc8ae5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 219 additions and 95 deletions

View file

@ -466,10 +466,12 @@ class CommentItem extends BaseObject
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
if($strlen)
{
$content = cut_str($content, $strlen, '...');
$content = escape(cut_str($content, $strlen, '...'), false);
}
else
{
$content = escape($content);
}
$content = escape($content);
if ($content === '')
{
@ -511,9 +513,12 @@ class CommentItem extends BaseObject
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
if($strlen)
{
$content = cut_str($content, $strlen, '...');
return escape(cut_str($content, $strlen, '...'), false);
}
else
{
return escape($content);
}
return escape($content);
}
/**