mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 03:42:18 +09:00
보안 관리 해결.
This commit is contained in:
parent
d7d077fae3
commit
317c3ac9b3
1 changed files with 1 additions and 0 deletions
|
|
@ -274,6 +274,7 @@ class documentController extends document
|
|||
$obj->homepage = $logged_info->homepage;
|
||||
}
|
||||
// If the tile is empty, extract string from the contents.
|
||||
$obj->title = htmlspecialchars($obj->title);
|
||||
settype($obj->title, "string");
|
||||
if($obj->title == '') $obj->title = cut_str(trim(strip_tags(nl2br($obj->content))),20,'...');
|
||||
// If no tile extracted from the contents, leave it untitled.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue