summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2021-07-20 13:14:32 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-08-13 08:45:50 +0000
commitfdd5bc8560d8b9ba32ad8b16650387056044b791 (patch)
treed9b5bb94adb7f4c41bafd47251f03b3004769a3f
parenta822e88d24904b3e1a18d12454273f60bf23452b (diff)
downloadnextcloud-server-fdd5bc8560d8b9ba32ad8b16650387056044b791.tar.gz
nextcloud-server-fdd5bc8560d8b9ba32ad8b16650387056044b791.zip
Gracefully handle smb acls for users without a domain
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
-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;
}