? platform/drupal/p
Index: platform/provision_drupal_settings.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/provision/platform/provision_drupal_settings.tpl.php,v
retrieving revision 1.12
diff -u -r1.12 provision_drupal_settings.tpl.php
--- platform/provision_drupal_settings.tpl.php	20 Mar 2009 16:13:25 -0000	1.12
+++ platform/provision_drupal_settings.tpl.php	17 Jun 2009 17:35:04 -0000
@@ -6,7 +6,7 @@
     'password' => '<?php print $db_passwd; ?>',
     'host' => '<?php print $db_host ?>',
   );
-  $db_url = '<?php print "$db_type://$db_user:$db_passwd@$db_host/$db_name"; ?>';
+  $db_url = '<?php print strtr("%db_type://%db_user:%db_passwd@%db_host/%db_name", array('%db_type' => urlencode($db_type), '%db_user' => urlencode($db_name), '%db_passwd' => urlencode($db_passwd), '%db_host' => urlencode($db_host), '%db_name' => urlencode($db_name))); ?>';
 
   $profile = "<?php print $profile ?>";
   /**
Index: platform/drupal/import_5.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/provision/platform/drupal/import_5.inc,v
retrieving revision 1.2
diff -u -r1.2 import_5.inc
--- platform/drupal/import_5.inc	17 Apr 2009 20:44:06 -0000	1.2
+++ platform/drupal/import_5.inc	17 Jun 2009 17:35:04 -0000
@@ -8,11 +8,11 @@
 }
 
 if ($parts = @parse_url($db_url)) {
-  drush_set_option('db_type', $parts['scheme'], 'site');
-  drush_set_option('db_user', $parts['user'], 'site');
-  drush_set_option('db_host', $parts['host'], 'site');
-  drush_set_option('db_passwd', $parts['pass'], 'site');
-  drush_set_option('db_name', substr($parts['path'], 1), 'site');
+  drush_set_option('db_type', urldecode($parts['scheme']), 'site');
+  drush_set_option('db_user', urldecode($parts['user']), 'site');
+  drush_set_option('db_host', urldecode($parts['host']), 'site');
+  drush_set_option('db_passwd', urldecode($parts['pass']), 'site');
+  drush_set_option('db_name', substr(urldecode($parts['path']), 1), 'site');
 
   drush_set_option('profile', variable_get('install_profile', 'default'), 'site');
   $has_locale = db_result(db_query("SELECT status FROM {system} WHERE type='module' AND name='locale'"));
Index: platform/drupal/import_6.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/provision/platform/drupal/import_6.inc,v
retrieving revision 1.2
diff -u -r1.2 import_6.inc
--- platform/drupal/import_6.inc	17 Apr 2009 20:44:06 -0000	1.2
+++ platform/drupal/import_6.inc	17 Jun 2009 17:35:04 -0000
@@ -8,11 +8,11 @@
 }
 
 if ($parts = @parse_url($db_url)) {
-  drush_set_option('db_type', $parts['scheme'], 'site');
-  drush_set_option('db_user', $parts['user'], 'site');
-  drush_set_option('db_host', $parts['host'], 'site');
-  drush_set_option('db_passwd', $parts['pass'], 'site');
-  drush_set_option('db_name', substr($parts['path'], 1), 'site');
+  drush_set_option('db_type', urldecode($parts['scheme']), 'site');
+  drush_set_option('db_user', urldecode($parts['user']), 'site');
+  drush_set_option('db_host', urldecode($parts['host']), 'site');
+  drush_set_option('db_passwd', urldecode($parts['pass']), 'site');
+  drush_set_option('db_name', substr(urldecode($parts['path']), 1), 'site');
 
   drush_set_option('profile', variable_get('install_profile', 'default'), 'site');
   $language = language_default();
Index: platform/drupal/import_7.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/provision/platform/drupal/import_7.inc,v
retrieving revision 1.1
diff -u -r1.1 import_7.inc
--- platform/drupal/import_7.inc	7 Apr 2009 22:26:37 -0000	1.1
+++ platform/drupal/import_7.inc	17 Jun 2009 17:35:04 -0000
@@ -1,11 +1,11 @@
 <?php
 global $databases;
 if ($db = $databases['default']['default']) {
-  drush_set_option('db_type', $db['driver'], 'site');
-  drush_set_option('db_user', $db['username'], 'site');
-  drush_set_option('db_host', $db['host'], 'site');
-  drush_set_option('db_passwd', $db['password'], 'site');
-  drush_set_option('db_name', $db['database'], 'site');
+  drush_set_option('db_type', urldecode($db['driver']), 'site');
+  drush_set_option('db_user', urldecode($db['username']), 'site');
+  drush_set_option('db_host', urldecode($db['host']), 'site');
+  drush_set_option('db_passwd', urldecode($db['password']), 'site');
+  drush_set_option('db_name', urldecode($db['database']), 'site');
 
   drush_set_option('profile', variable_get('install_profile', 'default'), 'site');
   $language = language_default();
