Fixed username containing separator if workgroup is empty

Signed-off-by: Christopher Gabriel <stuff@c-gabriel.at>
This commit is contained in:
Christopher Gabriel 2021-04-24 12:52:24 +02:00
parent d2df89a02f
commit 5616fda1ed
1 changed files with 1 additions and 1 deletions

View File

@ -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];