mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
RVE-2024-1 always escape DocumentItem->getTitleText()
This commit is contained in:
parent
a3650bb899
commit
152fb4e753
1 changed files with 3 additions and 2 deletions
|
|
@ -495,7 +495,8 @@ class DocumentItem extends BaseObject
|
|||
return;
|
||||
}
|
||||
|
||||
return $cut_size ? cut_str($this->get('title'), $cut_size, $tail) : $this->get('title');
|
||||
$title = $cut_size ? cut_str($this->get('title'), $cut_size, $tail) : $this->get('title');
|
||||
return escape($title, false);
|
||||
}
|
||||
|
||||
function getVoted()
|
||||
|
|
@ -593,7 +594,7 @@ class DocumentItem extends BaseObject
|
|||
return false;
|
||||
}
|
||||
|
||||
$title = escape($this->getTitleText($cut_size, $tail), false);
|
||||
$title = $this->getTitleText($cut_size, $tail);
|
||||
$this->add('title_color', trim($this->get('title_color') ?? ''));
|
||||
|
||||
$attrs = array();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue