Skip to content

Commit

Permalink
Use "%20" instead of raw space in Mastodon OAuth URL
Browse files Browse the repository at this point in the history
This prevents problems with browsers that don't handle URLs with spaces
correctly.

Fixes TwidereProject#326 <TwidereProject#326>
  • Loading branch information
ObjectBoxPC authored Dec 13, 2021
1 parent a6bda86 commit 2b0f7aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MastodonOAuthService(
fun getWebOAuthUrl(response: CreateApplicationResponse) =
"$host/oauth/authorize?client_id=${response.clientID}&response_type=code&redirect_uri=${response.redirectURI}&scope=${
scopes.joinToString(
" "
"%20"
) { it.name }
}"

Expand Down

0 comments on commit 2b0f7aa

Please sign in to comment.