Skip to content

Commit 5212ba0

Browse files
teroshanTonkat
authored andcommitted
Escape spaces when buiding authorization URL (PathOfBuildingCommunity#1244)
1 parent 8eb48db commit 5212ba0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Classes/PoEAPI.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function PoEAPIClass:FetchAuthToken(callback)
7070

7171
local authUrl = string.format(
7272
"https://www.pathofexile.com/oauth/authorize?client_id=pob&response_type=code&scope=%s&state=%s&code_challenge=%s&code_challenge_method=S256"
73-
,table.concat(scopesOAuth, " ")
73+
,table.concat(scopesOAuth, "%20")
7474
,initialState
7575
,code_challenge
7676
)
@@ -188,4 +188,4 @@ end
188188
---@param callback function callback(response, errorMsg, updateSettings)
189189
function PoEAPIClass:DownloadCharacter(realm, name, callback)
190190
self:DownloadWithRateLimit("character-request-limit-poe2", "/character" .. (realm == "pc" and "" or "/" .. realm) .. "/" .. name, callback)
191-
end
191+
end

0 commit comments

Comments
 (0)