Skip to content

Commit 1e32a79

Browse files
committed
a. state workaround
1 parent 8a3bf48 commit 1e32a79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/travis/api/app/endpoint/authorization.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ def create_state
319319

320320
def state_ok?(state, provider = :github)
321321
cookie_state = request.cookies[cookie_name(provider)]
322+
state = CGI.unescape(state)
322323
state == cookie_state and redis.srem('github:states', state.to_s.split(":::", 1))
323324
end
324325

0 commit comments

Comments
 (0)