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 to avoid breaking them within single quotes #95

Open
wants to merge 2 commits into
base: master
from

Conversation

@schlessera
Copy link
Member

schlessera commented Jul 16, 2019

As the values provided through the user's arguments are printed within single quotes in the wp-config.php file's defines, we need to escape them properly to avoid breaking these single quoted strings.

This is a stop-gap measure to fix the bug reported in #93, but the proper solution would be to rewrite according to #94 and centralize all validation and escaping in wp-cli/wp-config-transformer.

Fixes #93

@schlessera schlessera requested a review from wp-cli/committers as a code owner Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

1 participant
You can’t perform that action at this time.