Escape single quotes in the password so that we don't break our config

syntax.  Related to (but unclear that it fixes) ticket #650.
This commit is contained in:
Bharat Mediratta
2009-08-31 21:45:34 -07:00
parent b3cac5c173
commit e648ea4dbd

View File

@@ -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,