diff --git a/installer/web.php b/installer/web.php index a7060bd891..5fa8541eb4 100644 --- a/installer/web.php +++ b/installer/web.php @@ -41,9 +41,9 @@ list ($config["host"], $config["port"]) = explode(":", $config["host"] . ":"); foreach ($config as $k => $v) { if ($k == "password") { - $config[$k] = str_replace("'", "\\'", $v); + $config[$k] = str_replace(array("'", "\\"), array("\\'", "\\\\"), $v); } else { - $config[$k] = strtr($v, "'`", "__"); + $config[$k] = strtr($v, "'`\\", "___"); } }