Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-08-16 12:57:14 +0300
committerGitHub <noreply@github.com>2021-08-16 12:57:14 +0300
commit7fb8b50cf948be3644756440cbe3c3b8fa62135c (patch)
treecde2dd36c196ab063b661ed8820d4fa95e0a561b /apps
parentfb5ee6087bfd1f4cc2f37cda7a7cab7072aaae86 (diff)
parentfdd5bc8560d8b9ba32ad8b16650387056044b791 (diff)
Merge pull request #28416 from nextcloud/backport/28062/stable22
[stable22] Gracefully handle smb acls for users without a domain
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index 2081824b2f8..c9d078631b8 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -219,7 +219,7 @@ class SMB extends Common implements INotifyStorage {
private function getACL(IFileInfo $file): ?ACL {
$acls = $file->getAcls();
foreach ($acls as $user => $acl) {
- [, $user] = explode('\\', $user); // strip domain
+ [, $user] = $this->splitUser($user); // strip domain
if ($user === $this->server->getAuth()->getUsername()) {
return $acl;
}