diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-05 16:21:14 +0330 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 16:21:14 +0330 |
commit | 94f2f575194e55ba932f9cb95c834ce2fe1ad506 (patch) | |
tree | 560ef427c7092e15cad9cbc6ccefb89602fc9f67 /apps | |
parent | cfb921b26c656352f727b3903b8961e1c48a8051 (diff) | |
download | nextcloud-server-94f2f575194e55ba932f9cb95c834ce2fe1ad506.tar.gz nextcloud-server-94f2f575194e55ba932f9cb95c834ce2fe1ad506.zip |
Update apps/files_external/lib/Lib/Storage/SMB.php
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/SMB.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php index a022a051e20..66319d66770 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -141,9 +141,7 @@ class SMB extends Common implements INotifyStorage { private function splitUser($user) { if (str_contains($user, '/')) { return explode('/', $user, 2); - } - - if (str_contains($user, '\\')) { + } elseif (str_contains($user, '\\')) { return explode('\\', $user); } |