Skip to content

Dotenv doesn't unescape backslashes #29202

@nicolas-grekas

Description

@nicolas-grekas

Found in Symfony 4.2 but should exist in 3.4

When parsing a .env file containing FOO=A\\B, dotenv loads it as A\\B.
But it should remove one slash instead, and load value A\B (same as what the shell does when reading the same value).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions