<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
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 [];
}
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 . '>';