Skip to content

Commit

Permalink
Replaced single quotes with those determined by the determineQuote fu…
Browse files Browse the repository at this point in the history
…nction in username and password parameters (#172)

Co-authored-by: Malcon V Silva <[email protected]>
  • Loading branch information
malconvsilva and Malcon V Silva committed Jun 15, 2022
1 parent 693069e commit e90bdff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Databases/MongoDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ public function getDumpCommand(string $filename): string
];

if ($this->userName) {
$command[] = "--username '{$this->userName}'";
$command[] = "--username {$quote}{$this->userName}{$quote}";
}

if ($this->password) {
$command[] = "--password '{$this->password}'";
$command[] = "--password {$quote}{$this->password}{$quote}";
}

if (isset($this->host)) {
Expand Down

0 comments on commit e90bdff

Please sign in to comment.