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:
parent
b71ca1848c
commit
cf990c8544
|
@ -88,7 +88,7 @@ EOT;
|
||||||
|
|
||||||
// Add all variables to the config
|
// Add all variables to the config
|
||||||
foreach ($dbconfig as $key => $value) {
|
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
|
// Remove semicolon and new line from the end
|
||||||
|
|
Loading…
Reference in New Issue