不要怂,就是干,撸起袖子干!

Commit 602b1436 by Sascha Depold

Merge pull request #430 from durango/master

PostgreSQL can now accept special characters in username and passwords
2 parents 98eb895f 2725cb6a
Showing with 2 additions and 2 deletions
......@@ -532,8 +532,8 @@ module.exports = (function() {
var template = '<%= protocol %>://<%= user %>:<%= password %>@<%= host %><% if(port) { %>:<%= port %><% } %>/<%= database %>';
return Utils._.template(template)({
user: config.username,
password: config.password,
user: encodeURIComponent(config.username),
password: encodeURIComponent(config.password),
database: config.database,
host: config.host,
port: config.port,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!