Bugfix: use single quotes in config

So that the passwords with a dollar ($) wont be parsed into a variable by PHP
This commit is contained in:
Wruczek 2019-01-09 13:48:46 +01:00
parent b71ca1848c
commit cf990c8544
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ EOT;
// Add all variables to the config
foreach ($dbconfig as $key => $value) {
$confarray .= sprintf(' "%s" => "%s",' . PHP_EOL, addcslashes($key, '"'), addcslashes($value, '"'));
$confarray .= sprintf(" '%s' => '%s'," . PHP_EOL, addcslashes($key, '"'), addcslashes($value, '"'));
}
// Remove semicolon and new line from the end