Skip to content

Commit 1d41a3a

Browse files
committed
allow_other_host for discourse plugin redirects
1 parent f4a4528 commit 1d41a3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/discourse/app/controllers/discourse_controller.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ def redirect_to_with_payload(url, payload)
1313
base64_payload = Base64.strict_encode64 payload.to_query
1414
sso = CGI.escape base64_payload
1515
sig = get_hmac_hex_string base64_payload
16-
redirect_to "#{url}#{url.include?('?') ? '&' : '?'}sso=#{sso}&sig=#{sig}"
16+
17+
18+
redirect_to "#{url}#{url.include?('?') ? '&' : '?'}sso=#{sso}&sig=#{sig}", allow_other_host: true
1719
end
1820

1921
def parse_payload

0 commit comments

Comments
 (0)