Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed username containing separator if workgroup is empty
Signed-off-by: Christopher Gabriel <[email protected]>
  • Loading branch information
Snafu committed Apr 30, 2021
commit 5616fda1edf44121616e9b788603306d65b11841
2 changes: 1 addition & 1 deletion apps/files_external/lib/Lib/Storage/SMB.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function __construct($params) {
private function splitUser($user) {
if (strpos($user, '/')) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar with this ACL user notation containing a slash. Maybe the strpos() check here also has to be changed to strpos($user, '/') !== false

return explode('/', $user, 2);
} elseif (strpos($user, '\\')) {
} elseif (strpos($user, '\\') !== false) {
return explode('\\', $user);
} else {
return [null, $user];
Expand Down