Skip to content

Commit afc5fc6

Browse files
author
Eric Koleda
committed
Remove formatString call. Fixes #145
1 parent 4112c3d commit afc5fc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OAuth2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ function createService(serviceName) {
6464
* @return {string} The redirect URI.
6565
*/
6666
function getRedirectUri(scriptId) {
67-
return Utilities.formatString(
68-
'https://script.google.com/macros/d/%s/usercallback', scriptId);
67+
return 'https://script.google.com/macros/d/' + encodeURIComponent(scriptId) +
68+
'/usercallback';
6969
}
7070

7171
if (typeof module === 'object') {

0 commit comments

Comments
 (0)