Fix #3835: Related tags update vulnerability.
Also fixes deprecated call to `render :text`.
This commit is contained in:
@@ -36,13 +36,6 @@ class ApplicationController < ActionController::Base
|
||||
response.headers["Access-Control-Allow-Origin"] = "*"
|
||||
end
|
||||
|
||||
def require_reportbooru_key
|
||||
unless params[:key] == Danbooru.config.reportbooru_key
|
||||
render(text: "forbidden", status: 403)
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
def bad_db_connection
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
|
||||
Reference in New Issue
Block a user