diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-01-22 16:09:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 16:09:54 +0300 |
commit | 067781e55b1ace6c1ff4bc832c2ca0123d21dc24 (patch) | |
tree | 902aca1534e3a073e63ca9ec493315342a2fa147 | |
parent | 44c1403708765ea6f742ea05445d148d6a4b24c1 (diff) | |
parent | 627466a226bf02bbd3aeff553edd70470e35dca7 (diff) |
Merge pull request #30812 from nextcloud/backport/30795/stable22
-rw-r--r-- | apps/files_external/lib/Lib/Backend/SMB.php | 6 |
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, |