Fixed username and domain separation in getACL#26738
Fixed username and domain separation in getACL#26738Snafu wants to merge 2 commits intonextcloud:masterfrom Snafu:fix-smb-getacl
Conversation
Inspired by anikrooz commit 1f95f9b Signed-off-by: Christopher Gabriel <stuff@c-gabriel.at>
|
I want to point out the comment by anikrooz in the commit that inspired my fix and for some reason I did not pay enough attention to: Edit: If that is a security issue it could be possible that the following reolves any security concerns: Edit2: On my server I get the following ACLs from $file->getAcls() on a file in a share I use for tvheadend recordings. I had to add a domain to the external share in nextcloud otherwise I could not mount the share at all, I used the server name 'server'.
|
| @@ -142,7 +142,7 @@ public function __construct($params) { | |||
| private function splitUser($user) { | |||
| if (strpos($user, '/')) { | |||
There was a problem hiding this comment.
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
Signed-off-by: Christopher Gabriel <stuff@c-gabriel.at>
|
Cross-link: #25540 |
|
@Snafu would you mind rebasing your PR? :) |
|
Closing this pull request due to lack of recent activity and updates. We appreciate your contribution and encourage you to reopen or provide further updates if necessary. |
|
Hi, Author: Faraz Samapoor f.samapoor@gmail.com Refactors "strpos" calls in /apps/files_external to improve code readability. Signed-off-by: Faraz Samapoor f.samapoor@gmail.com |
Inspired by anikrooz commit
1f95f9b
Addresses issue mentioned here: #26457 (comment)
Signed-off-by: Christopher Gabriel stuff@c-gabriel.at