mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
RVE-2024-1 missing escape of autogenerated document title
This commit is contained in:
parent
40b3dcd5f0
commit
a3650bb899
1 changed files with 1 additions and 1 deletions
|
|
@ -750,7 +750,7 @@ class DocumentController extends Document
|
|||
$obj->title = escape($obj->title, false);
|
||||
if($obj->title == '')
|
||||
{
|
||||
$obj->title = cut_str(trim(strip_tags(nl2br($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