mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
RVE-2024-1 also apply escape() when updating document
This commit is contained in:
parent
1854700e77
commit
7cb9b8c786
1 changed files with 1 additions and 1 deletions
|
|
@ -1049,7 +1049,7 @@ class DocumentController extends Document
|
|||
$obj->title = escape($obj->title, false);
|
||||
if($obj->title == '')
|
||||
{
|
||||
$obj->title = cut_str(strip_tags($obj->content),20,'...');
|
||||
$obj->title = escape(cut_str(trim(utf8_normalize_spaces(strip_tags($obj->content))), 20, '...'), false);
|
||||
}
|
||||
if($obj->title == '')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue