fix
This commit is contained in:
parent
b0abf3d1e1
commit
e71289398b
|
@ -497,7 +497,10 @@ class AnnouncementsController < ApplicationController
|
||||||
end
|
end
|
||||||
def get_file
|
def get_file
|
||||||
@url = request.path
|
@url = request.path
|
||||||
render :file => "#{Rails.root}/app/views/errors/404.html", :layout => false, :status => :not_found, :content_type => 'text/html' and return if @url.match(/\/\.\./)
|
if @url.match(/\/\.\./)
|
||||||
|
render :file => "#{Rails.root}/app/views/errors/404.html", :layout => false, :status => :not_found, :content_type => 'text/html'
|
||||||
|
return
|
||||||
|
end
|
||||||
begin
|
begin
|
||||||
file = BulletinFile.find(params[:id])
|
file = BulletinFile.find(params[:id])
|
||||||
if File.basename(file.file.path) != URI.decode(params[:f_name])
|
if File.basename(file.file.path) != URI.decode(params[:f_name])
|
||||||
|
|
Loading…
Reference in New Issue