SECURITY: prefer render plain/html to render text where possible

This commit is contained in:
Sam Saffron
2017-04-10 08:01:25 -04:00
parent 1b5d7c1659
commit a3fbb64a0e
9 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -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