Skip to content

Commit

Permalink
Ensure that the status summary is a string
Browse files Browse the repository at this point in the history
Make sure that the content of `summary` can be searched for null bytes
and replaced with a valid XML string. Valid for the case of an XML
status response.
  • Loading branch information
eduardoj committed Feb 23, 2023
1 parent 6732b13 commit 75ae53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def required_parameters(*parameters)

def gather_exception_defaults(opt)
if opt[:message]
@summary = opt[:message]
@summary = opt[:message].to_s
elsif @exception
@summary = @exception.message
end
Expand Down

0 comments on commit 75ae53c

Please sign in to comment.