mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:25:35 +08:00
Merge pull request #5241 from Supermathie/s_encode
single_sign_on: encode the payload with strict_encode64 which doesn't add extraneous newlines
This commit is contained in:
commit
e600fb79b3
|
@ -78,7 +78,7 @@ class SingleSignOn
|
|||
end
|
||||
|
||||
def payload
|
||||
payload = Base64.encode64(unsigned_payload)
|
||||
payload = Base64.strict_encode64(unsigned_payload)
|
||||
"sso=#{CGI::escape(payload)}&sig=#{sign(payload)}"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user