diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-05-15 10:54:18 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-05-15 10:54:51 -0700 |
commit | 3caf3cc323cd25b002aa8e44d871d4677da7a029 (patch) | |
tree | 88eb60518213c537b64a10d0f27061ae5772a07c /installer/database_config.php | |
parent | 05b50f2edfdc24d23e5e072ee3831ca12c003543 (diff) |
Harden installer against bad characters in the database name or prefix. Fixes #1866.
Diffstat (limited to 'installer/database_config.php')
-rw-r--r-- | installer/database_config.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/database_config.php b/installer/database_config.php index a5dc8865..fb7dd112 100644 --- a/installer/database_config.php +++ b/installer/database_config.php @@ -31,7 +31,7 @@ $config['default'] = array( 'connection' => array( 'type' => '<?php print $type ?>', 'user' => '<?php print $user ?>', - 'pass' => '<?php print str_replace("'", "\\'", $password) ?>', + 'pass' => '<?php print $password ?>', 'host' => '<?php print $host ?>', 'port' => <?php if (!empty($port)): ?>'<?php print $port ?>' <?php else: ?>false<?php endif ?>, 'socket' => false, |