prevent security problem from being detected

This commit is contained in:
chiu 2020-04-22 23:52:31 +08:00
parent 32fafce8aa
commit 4a3a12b39a
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class ArchivesController < ApplicationController
file.save
redirect_to file.file.url and return
end
render :nothing => true
render :file => "#{Rails.root}/app/views/errors/404.html", :layout => false, :status => :not_found
end
def group_by_category