From 2084698801d8369d02a548c89ac8e8b36a59ed34 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 17 Oct 2024 15:57:48 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20get=5Ffile=20request.referer=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 9a720fbaf..0ee0363af 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -30,6 +30,7 @@ class AttachmentsController < ApplicationController def get_file + Rails.logger.info("request.host===#{request.host}") Rails.logger.info("request.referer===#{request.referer}") normal_status(-1, "参数缺失") if params[:download_url].blank? url = base_url.starts_with?("https:") ? params[:download_url].to_s.gsub("http:", "https:") : params[:download_url].to_s