Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit 73bbf46

Browse files
committed
Merge pull request JamesRandall#14 from harlandpaul/ChangesEncodingMethodOfURL
Uses encodeURIComponent() to encode url parts.
2 parents 4e338d8 + 7704611 commit 73bbf46

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dist/angularJsOAuth2.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@
207207

208208
service.init = function(params) {
209209
service.url = params.authorizationUrl + '?' +
210-
'client_id=' + encodeURI(params.clientId) + '&' +
211-
'redirect_uri=' + encodeURI(params.redirectUrl) + '&' +
212-
'response_type=' + encodeURI(params.responseType) + '&' +
213-
'scope=' + encodeURI(params.scope) + '&' +
214-
'nonce=' + encodeURI(params.nonce) + '&' +
215-
'state=' + encodeURI(params.state);
210+
'client_id=' + encodeURIComponent(params.clientId) + '&' +
211+
'redirect_uri=' + encodeURIComponent(params.redirectUrl) + '&' +
212+
'response_type=' + encodeURIComponent(params.responseType) + '&' +
213+
'scope=' + encodeURIComponent(params.scope) + '&' +
214+
'nonce=' + encodeURIComponent(params.nonce) + '&' +
215+
'state=' + encodeURIComponent(params.state);
216216
service.signOutUrl = params.signOutUrl;
217217
service.signOutRedirectUrl = params.signOutRedirectUrl;
218218
service.state = params.state;

0 commit comments

Comments
 (0)