From: moodler <moodler> Date: Mon, 6 Sep 2004 15:50:47 +0000 (+0000) Subject: Merged fix from stable X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c423badc8836424a01e39bfa2253588e6efab96d;p=moodle.git Merged fix from stable --- 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";