dbhost may have quotes in it (needs slashes)

This commit is contained in:
moodler
2004-09-06 15:50:00 +00:00
parent ae18de992f
commit 7c2e85f1bd
+1 -1
View File
@@ -280,7 +280,7 @@ if ($nextstage == 5) {
$str .= "\r\n";
$str .= '$CFG->dbtype = \''.$INSTALL['dbtype']."';\r\n";
$str .= '$CFG->dbhost = \''.$INSTALL['dbhost']."';\r\n";
$str .= '$CFG->dbhost = \''.addslashes($INSTALL['dbhost'])."';\r\n";
if (!empty($INSTALL['dbname'])) {
$str .= '$CFG->dbname = \''.$INSTALL['dbname']."';\r\n";
$str .= '$CFG->dbuser = \''.$INSTALL['dbuser']."';\r\n";