`salts generate` will badly trims existing values if not quoted
redgluten opened this issue · 2 comments
redgluten commented
Using salts generate
(or regenerate
on a .env
file with unquoted values results in badly trimmed values for all settings.
For example:
DB_NAME=my_db
DB_USER=my_user
...
will result in:
DB_NAME='y_d'
DB_USER='y_use'
I realize quoting your values is now considered good practice but some generators like WP-Cli Valet command don’t do it all the time. I’ll also open an issue there.
aaemnnosttv commented
You're likely using an old version of the package as new salts are currently set with a wrapping single quote. Please update to the latest version and let me know if this is still an issue for you.