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:09:54 +0300
committerGitHub <noreply@github.com>2022-01-22 16:09:54 +0300
commit067781e55b1ace6c1ff4bc832c2ca0123d21dc24 (patch)
tree902aca1534e3a073e63ca9ec493315342a2fa147
parent44c1403708765ea6f742ea05445d148d6a4b24c1 (diff)
parent627466a226bf02bbd3aeff553edd70470e35dca7 (diff)
Merge pull request #30812 from nextcloud/backport/30795/stable22
-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,