diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-08-31 21:45:34 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-31 21:45:34 -0700 |
commit | e648ea4dbdb423e80d79ba9e4c9f3ebde6ed22a0 (patch) | |
tree | 442c00c06009f7e686036a2924d5d4565e1250f4 | |
parent | b3cac5c17320af380b18552a40ff809e598668cd (diff) |
Escape single quotes in the password so that we don't break our config
syntax. Related to (but unclear that it fixes) ticket #650.
-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 a31119ac..0f04b95c 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 $password ?>', + 'pass' => '<?php print str_replace("'", "\\'", $password) ?>', 'host' => '<?php print $host ?>', 'port' => false, 'socket' => false, |