mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix modifying frozen strings errors take 3.
This commit is contained in:
@@ -28,7 +28,7 @@ class SessionController < ApplicationController
|
||||
|
||||
if destination_url && return_path == path('/')
|
||||
uri = URI::parse(destination_url)
|
||||
return_path = "#{uri.path}#{uri.query ? "?" << uri.query : ""}"
|
||||
return_path = "#{uri.path}#{uri.query ? "?#{uri.query}" : ""}"
|
||||
end
|
||||
|
||||
session.delete(:destination_url)
|
||||
@@ -229,7 +229,7 @@ class SessionController < ApplicationController
|
||||
render_sso_error(text: text || I18n.t("sso.unknown_error"), status: 500)
|
||||
|
||||
rescue => e
|
||||
message = "Failed to create or lookup user: #{e}."
|
||||
message = +"Failed to create or lookup user: #{e}."
|
||||
message << " "
|
||||
message << " #{sso.diagnostics}"
|
||||
message << " "
|
||||
|
||||
Reference in New Issue
Block a user