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
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-01-22 16:14:56 +0300
committerGitHub <noreply@github.com>2022-01-22 16:14:56 +0300
commit269f04b1b82b0b89927173e1851c4075aadeeebd (patch)
tree9aecedec23dfbc82ab7eb9535c717dd040db88aa
parent0c631830bba9ff49e5f281699cf2514ea2e4d54d (diff)
parentfc3b256dda4b8aeb0a4534f1cf0421f298ce3a12 (diff)
Merge pull request #30811 from nextcloud/backport/30795/stable23
-rw-r--r--apps/files_external/lib/Lib/Backend/SMB.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_external/lib/Lib/Backend/SMB.php b/apps/files_external/lib/Lib/Backend/SMB.php
index 57ee866f3c7..70eaa206483 100644
--- a/apps/files_external/lib/Lib/Backend/SMB.php
+++ b/apps/files_external/lib/Lib/Backend/SMB.php
@@ -108,14 +108,12 @@ class SMB extends Backend {
if (empty($realm)) {
$realm = 'WORKGROUP';
}
- $userPart = $matches[1];
- $domainPart = $matches[2];
if (count($matches) === 0) {
$username = $user;
$workgroup = $realm;
} else {
- $username = $userPart;
- $workgroup = $domainPart;
+ $username = $matches[1];;
+ $workgroup = $matches[2];
}
$smbAuth = new BasicAuth(
$username,