--- includes/environment.inc.orig	2009-05-12 08:35:45.000000000 -0500
+++ includes/environment.inc	2009-05-12 08:38:28.000000000 -0500
@@ -467,19 +467,19 @@ function _drush_bootstrap_drupal_configu
   // Populate the DRUSH_DB_CREDENTIALS with the fields loaded from the configuration.
   $creds = array();
   switch (drush_drupal_major_version()) {
      case 5:
      case 6:
        if (isset($GLOBALS['db_url'])) {
          $parts = parse_url($GLOBALS['db_url']);
          $creds['driver'] = $parts['scheme'];
-         $creds['user'] = $parts['user'];
+         $creds['user'] = urldecode($parts['user']);
          $creds['host'] = $parts['host'];
-         $creds['pass'] = $parts['pass'];
+         $creds['pass'] = urldecode($parts['pass']);
          $creds['name'] = trim($parts['path'], '/');
        }
        break;
      case 7:
        if (isset($GLOBALS['databases']['default']['default'])) {
          $conn = $GLOBALS['databases']['default']['default'];
          $creds['driver'] = $conn['driver'];
          $creds['user'] = $conn['username'];
