@@ -38,6 +38,8 class ApplicationController < ActionController::Base | |||
|
38 | 38 | filter_parameter_logging :password |
|
39 | 39 | protect_from_forgery |
|
40 | 40 | |
|
41 | rescue_from ActionController::InvalidAuthenticityToken, :with => :invalid_authenticity_token | |
|
42 | ||
|
41 | 43 | include Redmine::Search::Controller |
|
42 | 44 | include Redmine::MenuManager::MenuController |
|
43 | 45 | helper Redmine::MenuManager::MenuHelper |
@@ -189,6 +191,10 class ApplicationController < ActionController::Base | |||
|
189 | 191 | render :text => '', :layout => !request.xhr?, :status => 500 |
|
190 | 192 | end |
|
191 | 193 | |
|
194 | def invalid_authenticity_token | |
|
195 | render_error "Invalid form authenticity token." | |
|
196 | end | |
|
197 | ||
|
192 | 198 | def render_feed(items, options={}) |
|
193 | 199 | @items = items || [] |
|
194 | 200 | @items.sort! {|x,y| y.event_datetime <=> x.event_datetime } |
General Comments 0
You need to be logged in to leave comments.
Login now