Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Adds support for complex github passwords #18

Merged
merged 1 commit into from

2 participants

@balupton

E.g. 42/Z:?5t3&E78<}E

@pksunkara pksunkara merged commit 5733522 into pksunkara:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 16, 2013
  1. @balupton
This page is out of date. Refresh to see the latest.
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;
}
/*
Something went wrong with that request. Please try again.