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

Sanitize Strings #441

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Sanitize Strings #441

merged 1 commit into from
Apr 25, 2024

Conversation

coreyogburn
Copy link
Contributor

Gridmembershandler.go had a custom implemented sanitize function, replaced it with the sanitize library of choice we use else where in the project.

PublicIds are used in a few places to name files being written to disk so some extra care was taken to be sure we validate them more stringently and sanitize them before use. They are, after all, externally provided content.

More test cases for validateId to ensure file paths or even the characters used in file paths aren't acceptable regardless of slash direction. This is used upstream of where we use PublicIds for file names.

Gridmembershandler.go had a custom implemented sanitize function, replaced it with the sanitize library of choice we use else where in the project.

PublicIds are used in a few places to name files being written to disk so some extra care was taken to be sure we validate them more stringently and sanitize them before use. They are, after all, externally provided content.

More test cases for validateId to ensure file paths or even the characters used in file paths aren't acceptable regardless of slash direction. This is used upstream of where we use PublicIds for file names.
@coreyogburn coreyogburn merged commit 46eed58 into 2.4/dev Apr 25, 2024
3 checks passed
@coreyogburn coreyogburn deleted the cogburn/sanitize branch April 25, 2024 18:11
@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants