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

fix: Fix psalm taint false-positives by small refactorings #50864

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Feb 17, 2025

Summary

Follow-up of #50800
Mostly make it clear that we trust admin input or that we correctly
escape strings.

There is one last taint error, but I do not know how to avoid it. Psalm confuses array keys and values at some point and thinks there is a tainted value in array key while it’s in value.

Checklist

Mostly make it clear that we trust admin input or that we correctly
 escape strings.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc added the 3. to review Waiting for reviews label Feb 17, 2025
@come-nc come-nc added this to the Nextcloud 32 milestone Feb 17, 2025
@come-nc come-nc self-assigned this Feb 17, 2025
@come-nc come-nc requested a review from susnux February 17, 2025 17:10
@nickvergessen nickvergessen merged commit a80d7ce into master Feb 18, 2025
192 checks passed
@nickvergessen nickvergessen deleted the fix/fix-psalm-taint-errors-2 branch February 18, 2025 12:59
@come-nc
Copy link
Contributor Author

come-nc commented Feb 18, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants