diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-01-22 16:14:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 16:14:56 +0300 |
commit | 269f04b1b82b0b89927173e1851c4075aadeeebd (patch) | |
tree | 9aecedec23dfbc82ab7eb9535c717dd040db88aa | |
parent | 0c631830bba9ff49e5f281699cf2514ea2e4d54d (diff) | |
parent | fc3b256dda4b8aeb0a4534f1cf0421f298ce3a12 (diff) |
Merge pull request #30811 from nextcloud/backport/30795/stable23
-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, |