From cf990c8544fc0852bf2c52017be0f2cecb659482 Mon Sep 17 00:00:00 2001 From: Wruczek Date: Wed, 9 Jan 2019 13:48:46 +0100 Subject: [PATCH] Bugfix: use single quotes in config So that the passwords with a dollar ($) wont be parsed into a variable by PHP --- src/installer/pages/3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer/pages/3.php b/src/installer/pages/3.php index 6b9c4c3..658477a 100644 --- a/src/installer/pages/3.php +++ b/src/installer/pages/3.php @@ -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