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

Escape values from env_file #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gramosg
Copy link

@gramosg gramosg commented May 8, 2020

This commit sanitizes the values of the env_file. Currently the values are source'd as they are, causing out to crash with certain envvar values (e.g., those containing double quotes, which is what happened to me), and even allowing arbitrary code injection. This PR should protect against all dangerous escape characters in Bash (", \, <backtick>, $).

Thanks and keep up the good work!

@bgandon bgandon force-pushed the master branch 2 times, most recently from bad41f3 to edd15a5 Compare February 5, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants