Skip to content

Commit

Permalink
Fixed issue #7974: Single quote in DB user password breaks installation
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Sep 26, 2013
1 parent 81fa4b5 commit 9f00d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/InstallerController.php
Expand Up @@ -1040,8 +1040,8 @@ function _writeConfigFile()
$dbdata .="\t\t\t" . "'emulatePrepare' => true," . "\n";

}
$dbdata .="\t\t\t" . "'username' => '$sDatabaseUser'," . "\n"
."\t\t\t" . "'password' => '$sDatabasePwd'," . "\n"
$dbdata .="\t\t\t" . "'username' => '".addslashes($sDatabaseUser)."'," . "\n"
."\t\t\t" . "'password' => '".addslashes($sDatabasePwd)."'," . "\n"
."\t\t\t" . "'charset' => 'utf8'," . "\n"
."\t\t\t" . "'tablePrefix' => '$sDatabasePrefix'," . "\n";

Expand Down

0 comments on commit 9f00d54

Please sign in to comment.