From c423badc8836424a01e39bfa2253588e6efab96d Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 6 Sep 2004 15:50:47 +0000 Subject: [PATCH] Merged fix from stable --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index a11b28405a..51d73f03ae 100644 --- a/install.php +++ b/install.php @@ -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"; -- 2.39.5