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
This commit is contained in:
Toshi MARUYAMA 2011-09-01 23:40:59 +00:00
parent bf233552df
commit 3504fd038c
1 changed files with 2 additions and 1 deletions

View File

@ -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