Skip to content
Browse files

dbhost may have quotes in it (needs slashes)

  • Loading branch information...
1 parent ae18de9 commit 7c2e85f1bd72426ca2e8ed4c4260eead51f026d2 moodler committed Sep 6, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 install.php
View
2 install.php
@@ -280,7 +280,7 @@
$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";

0 comments on commit 7c2e85f

Please sign in to comment.
Something went wrong with that request. Please try again.