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

New function safe_set_var(): Safe wrapper for set_var() #811

Merged
merged 4 commits into from
Dec 11, 2022

Conversation

TinCanTech
Copy link
Collaborator

When using set_var() with a variable as in input for name of the variable, use this wrapper to verify the input is suitable as a variable name.

Signed-off-by: Richard T Bonhomme tincantech@protonmail.com

@TinCanTech
Copy link
Collaborator Author

Supersedes: #801

When using set_var() with a variable as in input for name of the variable,
use this wrapper to verify the input is suitable as a variable name.

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
@TinCanTech
Copy link
Collaborator Author

Force push: Rename function to safe_set_var()

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
@TinCanTech TinCanTech added this to the v3.1.2 - Probably milestone Dec 10, 2022
@TinCanTech TinCanTech linked an issue Dec 10, 2022 that may be closed by this pull request
@TinCanTech TinCanTech changed the title New function sanatize_and_set_var(): Safe wrapper for set_var() New function safe_set_var(): Safe wrapper for set_var() Dec 10, 2022
@TinCanTech TinCanTech merged commit b5228f7 into OpenVPN:master Dec 11, 2022
@TinCanTech TinCanTech deleted the sanatize_and_set_var branch January 3, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

set_var expands all (minus one) passed parameters as value
1 participant