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:
Michael Brown 2017-10-19 11:38:00 -04:00 committed by GitHub
commit e600fb79b3
1 changed files with 1 additions and 1 deletions

View File

@ -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