mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Change person type separator
`/` isn't allowed in UID, it will avoid conflicts Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
parent
ce6e3a3a01
commit
82c164dabe
1 changed files with 3 additions and 1 deletions
|
|
@ -32,6 +32,8 @@ use OCP\IUserManager;
|
|||
use RuntimeException;
|
||||
|
||||
final class FilterFactory {
|
||||
private const PERSON_TYPE_SEPARATOR = '/';
|
||||
|
||||
public static function get(string $type, string|array $filter): IFilter {
|
||||
return match ($type) {
|
||||
FilterDefinition::TYPE_BOOL => new Filter\BooleanFilter($filter),
|
||||
|
|
@ -48,7 +50,7 @@ final class FilterFactory {
|
|||
}
|
||||
|
||||
private static function getPerson(string $person): IFilter {
|
||||
$parts = explode('_', $person, 2);
|
||||
$parts = explode(self::PERSON_TYPE_SEPARATOR, $person, 2);
|
||||
|
||||
return match (count($parts)) {
|
||||
1 => self::get(FilterDefinition::TYPE_NC_USER, $person),
|
||||
|
|
|
|||
Loading…
Reference in a new issue