summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,