Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Encode usernames #41

Merged
merged 1 commit into from
Jan 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/trakt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func AuthRequest(root, username, code, refreshToken, grantType string) map[strin
"refresh_token": refreshToken,
"client_id": os.Getenv("TRAKT_ID"),
"client_secret": os.Getenv("TRAKT_SECRET"),
"redirect_uri": fmt.Sprintf("%s/authorize?username=%s", root, username),
"redirect_uri": fmt.Sprintf("%s/authorize?username=%s", root, url.PathEscape(username)),
"grant_type": grantType,
}
jsonValue, _ := json.Marshal(values)
Expand Down