Skip to content
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

[Task] optimize permission concat #799

Merged
merged 1 commit into from
Dec 17, 2024
Merged

[Task] optimize permission concat #799

merged 1 commit into from
Dec 17, 2024

Conversation

fashxp
Copy link
Member

@fashxp fashxp commented Dec 17, 2024

Followup to #794

Optimize concat a bit to prevent getting unwanted false positives.

Example constellation would be:
foo/bar
foo/barsecret

"' . $fullpath . '%" would include second folder, "' . $fullpath . '/%" doesn't.

Currently, it doesn't make a difference, because the NOT LIKE queries filter out false positives, but it could bite us in future cases.

@fashxp fashxp added the Task label Dec 17, 2024
@fashxp fashxp added this to the 1.6.5 milestone Dec 17, 2024
Copy link

@robertSt7 robertSt7 merged commit 0e3a8e1 into 1.6 Dec 17, 2024
10 checks passed
@robertSt7 robertSt7 deleted the permission-optimization branch December 17, 2024 13:48
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants