fix error
This commit is contained in:
parent
6f14f00478
commit
4843a52134
|
@ -497,7 +497,7 @@ class AnnouncementsController < ApplicationController
|
||||||
end
|
end
|
||||||
def get_file
|
def get_file
|
||||||
@url = request.path
|
@url = request.path
|
||||||
render :text => "Path not allow",:status => 404 if @url.match(/\/\.\./)
|
render :text => "Path not allow",:status => 404 and return if @url.match(/\/\.\./)
|
||||||
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