summaryrefslogtreecommitdiff
path: root/installer/database_config.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-31 21:45:34 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-31 21:45:34 -0700
commite648ea4dbdb423e80d79ba9e4c9f3ebde6ed22a0 (patch)
tree442c00c06009f7e686036a2924d5d4565e1250f4 /installer/database_config.php
parentb3cac5c17320af380b18552a40ff809e598668cd (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.
Diffstat (limited to 'installer/database_config.php')
-rw-r--r--installer/database_config.php2
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,