Fixed username containing separator if workgroup is empty
Signed-off-by: Christopher Gabriel <stuff@c-gabriel.at>
This commit is contained in:
parent
d2df89a02f
commit
5616fda1ed
|
@ -142,7 +142,7 @@ class SMB extends Common implements INotifyStorage {
|
|||
private function splitUser($user) {
|
||||
if (strpos($user, '/')) {
|
||||
return explode('/', $user, 2);
|
||||
} elseif (strpos($user, '\\')) {
|
||||
} elseif (strpos($user, '\\') !== false) {
|
||||
return explode('\\', $user);
|
||||
} else {
|
||||
return [null, $user];
|
||||
|
|
Loading…
Reference in New Issue