-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Dotenv doesn't unescape backslashes #29202
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
Comments
Wasn't this already reported and rejected ? I think it was because of some stuff because of docker's loading env was problematic as it was removing slashes and dotenv didn't. Not really sure, but I'd be 👍 to remove slashes anyway. :} |
That's quite possible. Can you find the link please? |
Nevermind, it was about surrounding So 👍 |
Do you have a link? |
Here goes, but as I said, it's unrelated : #27594 |
see #29222 |
…xabbuh) This PR was merged into the 3.4 branch. Discussion ---------- [Dotenv] properly parse backslashes in unquoted env vars | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #29202 | License | MIT | Doc PR | Commits ------- 785fff5 properly parse backslashes in unquoted env vars
Found in Symfony 4.2 but should exist in 3.4
When parsing a
.env
file containingFOO=A\\B
, dotenv loads it asA\\B
.But it should remove one slash instead, and load value
A\B
(same as what the shell does when reading the same value).The text was updated successfully, but these errors were encountered: