Browse Source

add empty line after guard clause to AttachmentsController

git-svn-id: http://svn.redmine.org/redmine/trunk@20253 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Toshi MARUYAMA 3 years ago
parent
commit
e7f6297e7c
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      app/controllers/attachments_controller.rb

+ 1
- 0
app/controllers/attachments_controller.rb View File

@@ -207,6 +207,7 @@ class AttachmentsController < ApplicationController
@attachment = Attachment.find(params[:id])
# Show 404 if the filename in the url is wrong
raise ActiveRecord::RecordNotFound if params[:filename] && params[:filename] != @attachment.filename

@project = @attachment.project
rescue ActiveRecord::RecordNotFound
render_404

Loading…
Cancel
Save