mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user