mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Clean up HTML filtering and emoji encoding #2631
This commit is contained in:
parent
307661b57b
commit
cc17bbe05a
4 changed files with 46 additions and 28 deletions
|
|
@ -55,11 +55,10 @@ class DocumentView extends Document
|
|||
throw new Rhymix\Framework\Exceptions\SecurityViolation;
|
||||
}
|
||||
|
||||
$content = Context::get('content');
|
||||
|
||||
if(Context::get('logged_info')->is_admin != 'Y')
|
||||
$content = (string)Context::get('content');
|
||||
if (Context::get('logged_info')->is_admin !== 'Y')
|
||||
{
|
||||
$content = removeHackTag($content);
|
||||
$content = Rhymix\Framework\Filters\HTMLFilter::clean($content);
|
||||
}
|
||||
|
||||
// Editor converter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue