Skip to content

[database:dump] does not escape dollar sign #3888

@Zeviore

Description

@Zeviore

Problem/Motivation

The mysqldump command generated fails when the password contains a dollar sign. If i alter the command manually and escape the dollar sign with a backslash the mysqldump command works as expected.

How to reproduce

  • Drupal version: 8.5.3
  • Console version: 1.8.0
  • Steps to reproduce:
    Install a drupal site and configure the database with a username and password with a dollar sign
    Run database:dump

Solution

escapeshellcmd (http://php.net/manual/en/function.escapeshellcmd.php) could be used

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions