SECURITY: prefer render plain/html to render text where possible
This commit is contained in:
@@ -6,9 +6,9 @@ class ForumsController < ApplicationController
|
||||
|
||||
def status
|
||||
if $shutdown
|
||||
render text: 'shutting down', status: 500, content_type: 'text/plain'
|
||||
render plain: 'shutting down', status: 500
|
||||
else
|
||||
render text: 'ok', content_type: 'text/plain'
|
||||
render plain: 'ok'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user