Clean up trash handling logic

This commit is contained in:
Kijin Sung 2023-09-22 02:05:14 +09:00
parent 10123a86a8
commit 565cfad15f
4 changed files with 25 additions and 61 deletions

View file

@ -24,8 +24,8 @@ class TrashVO
}
function getTitle()
{
if(empty($this->title)) return $lang->untitle;
return htmlspecialchars($this->title, ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
if(empty($this->title)) return lang('untitle');
return escape($this->title, false);
}
function setTitle($title)
{
@ -90,7 +90,7 @@ class TrashVO
}
function getNickName()
{
return htmlspecialchars($this->nickName, ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
return escape($this->nickName, false);
}
function setNickName($nickName)
{