X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FACLFormatter.php;h=0351b27a64a9cba0df7403d567481e633bbf0b04;hb=053075533292b3cca26aed582e504c8f7fa8c7cc;hp=d79a73298b086ea1ec46308651c736538f14c45a;hpb=b7527a803a5eda9a383b6fc95c522d1ebf8580eb;p=friendica.git diff --git a/src/Util/ACLFormatter.php b/src/Util/ACLFormatter.php index d79a73298b..0351b27a64 100644 --- a/src/Util/ACLFormatter.php +++ b/src/Util/ACLFormatter.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util; @@ -19,7 +38,7 @@ final class ACLFormatter public function expand(string $acl_string = null) { // In case there is no ID list, return empty array (=> no ACL set) - if (!isset($acl_string)) { + if (empty($acl_string)) { return []; } @@ -65,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 . '>';