From: Toshi MARUYAMA Date: Thu, 1 Sep 2011 23:40:59 +0000 (+0000) Subject: respond nothing in case of content type is not html with invalid query params (#8883... X-Git-Tag: 1.3.0~939 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3504fd038c1f097a86c0461fcca08b85785fded3;p=redmine.git respond nothing in case of content type is not html with invalid query params (#8883, #6317). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7024 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index b0d2dfac5..af44e3c19 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -99,7 +99,8 @@ class IssuesController < ApplicationController end else respond_to do |format| - format.any(:html, :atom, :csv, :pdf) { render(:template => 'issues/index', :layout => !request.xhr?) } + format.html { render(:template => 'issues/index', :layout => !request.xhr?) } + format.any(:atom, :csv, :pdf) { render(:nothing => true) } format.api { render_validation_errors(@query) } end end