Commit 00a16fb8 authored by anarcat's avatar anarcat Committed by anarcat

#659682 - properly urldecode the characters in the master DB

parent c286f623
......@@ -16,11 +16,11 @@ function provision_mysql_drush_init() {
drush_set_default('master_db', $GLOBALS['db_url']);
$master_db = drush_get_option('master_db');
$db = parse_url($master_db);
drush_set_default('master_db_user', $db['user']);
drush_set_default('master_db_passwd', $db['pass']);
drush_set_default('master_db_user', urldecode($db['user']));
drush_set_default('master_db_passwd', urldecode($db['pass']));
drush_set_default('master_db_host', $db['host']);
drush_set_default('db_host', $db['host']);
drush_set_default('master_db_host', urldecode($db['host']));
drush_set_default('db_host', urldecode($db['host']));
drush_set_default('master_db_type', $db['scheme']);
drush_set_default('db_type', $db['scheme']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment