summaryrefslogtreecommitdiffstats
path: root/app/controllers/issues_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-01 23:40:59 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-01 23:40:59 +0000
commit3504fd038c1f097a86c0461fcca08b85785fded3 (patch)
treec6ce5cf41bf6f627133905ffb7db73434d3bd157 /app/controllers/issues_controller.rb
parentbf233552df8d64a833bc8463b64e1b2f793fd3c4 (diff)
downloadredmine-3504fd038c1f097a86c0461fcca08b85785fded3.tar.gz
redmine-3504fd038c1f097a86c0461fcca08b85785fded3.zip
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
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r--app/controllers/issues_controller.rb3
1 files changed, 2 insertions, 1 deletions
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