fix #1125 where rest/xml request were being rejected by the new csrf code of rails

This commit is contained in:
Reinier Balt 2011-03-26 17:34:54 +01:00
parent fed7483063
commit 898dbe01c6

View file

@ -185,6 +185,12 @@ class ApplicationController < ActionController::Base
return saved ? todo : nil return saved ? todo : nil
end end
def handle_unverified_request
unless request.format=="application/xml"
super # handle xml http auth via our own login code
end
end
protected protected
def admin_login_required def admin_login_required