Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds support for complex github passwords

  • Loading branch information...
commit f6c05a1645602564b75725d9e358e3f4adfa3aed 1 parent 3b20dfd
@balupton balupton authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/police/github.js
View
2  lib/police/github.js
@@ -234,7 +234,7 @@ github.token = function (auth) {
* Build github token host
*/
github.tokenHost = function (auth) {
- return github.options.protocol + '://' + auth.username + ':' + auth.password + '@' + github.options.host;
+ return github.options.protocol + '://' + auth.username + ':' + encodeURIComponent(auth.password) + '@' + github.options.host;
}
/*
Please sign in to comment.
Something went wrong with that request. Please try again.