mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
Fix extracting workgroup from user
This commit is contained in:
parent
bf164b3cef
commit
40fa68e426
1 changed files with 5 additions and 2 deletions
|
|
@ -44,9 +44,12 @@ class NativeShare implements IShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = $this->server->getUser();
|
$user = $this->server->getUser();
|
||||||
$workgroup = null;
|
|
||||||
if (strpos($user, '/')) {
|
if (strpos($user, '/')) {
|
||||||
list($workgroup, $user) = explode($user, '/');
|
list($workgroup, $user) = explode('/', $user);
|
||||||
|
} elseif (strpos($user, '\\')) {
|
||||||
|
list($workgroup, $user) = explode('\\', $user);
|
||||||
|
} else {
|
||||||
|
$workgroup = null;
|
||||||
}
|
}
|
||||||
$this->state->init($workgroup, $user, $this->server->getPassword());
|
$this->state->init($workgroup, $user, $this->server->getPassword());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue