laravel-config-writer icon indicating copy to clipboard operation
laravel-config-writer copied to clipboard

String with backslash fails

Open eXpl0it3r opened this issue 7 years ago • 0 comments

I tried to install October CMS which uses laravel-config-writer. The installer asks for the password of the MySQL database and since my passwords are all randomly generated, they contain special characters and sometimes that might be a backslash (). The installer always failed with the error:

Unable to rewrite key "connections.mysql.password" in config, rewrite failed

Now I understand that having one backslash isn't really smart anyways, since it will be stored in a string where the backslash will act as escape character. However even if you use two backslashes to escape the first one, rewrite will just error.

Maybe you don't want to support backslashes, but I thought it's worth reporting regardless. :smiley:

eXpl0it3r avatar Aug 11 '16 13:08 eXpl0it3r