Skip to content

Commit

Permalink
Actual filestore fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Oct 20, 2010
1 parent c8d892f commit dba7982
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/public_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def file_store

# Only editors can access the file store directly
return render(:inline => 'File not found', :status => 404) unless myself.editor?
return render(:inline => 'File not found', :status => 404) unless params[:prefix][-1]



if (@file_param = params[:prefix][-1].split(":")).length == 2
@size = @file_param[1]
Expand Down

0 comments on commit dba7982

Please sign in to comment.