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

properly escape quotes in passwords by calling to_ruby #1189

Merged
merged 1 commit into from
Oct 18, 2024

Commits on Oct 16, 2024

  1. properly escape quotes in passwords by calling to_ruby

    database passwords can contain special characters, especially " and '
    so we can't just print the value of the field enclosed by double quotes
    as that would break whenever the user uses a literal " in their password
    
    using to_ruby here and not to_yaml, as the former gives us correct escaping
    without the whole `---` and `\n` enclosing that to_yaml forces.
    using to_yaml would require to pass *the whole* config hash to it
    evgeni committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    95133be View commit details
    Browse the repository at this point in the history