-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed username and domain separation in getACL #26738
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.
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
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