Simplify item sanitization in Util\ACLFormatter
This commit is contained in:
parent
f0267fc441
commit
e342f69e21
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ final class ACLFormatter
|
|||
private function sanitizeItem(string &$item) {
|
||||
// The item is an ACL int value
|
||||
if (intval($item)) {
|
||||
$item = '<' . intval(Strings::escapeTags(trim($item))) . '>';
|
||||
$item = '<' . intval($item) . '>';
|
||||
// The item is a allowed ACL character
|
||||
} elseif (in_array($item, [Group::FOLLOWERS, Group::MUTUALS])) {
|
||||
$item = '<' . $item . '>';
|
||||
|
|
Loading…
Reference in a new issue