Permalink
Browse files

Rendering is protected

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 20eb59a commit 388f504f6d8c7def28eb88d7f62c9267600e0f56 @dhh dhh committed May 8, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/http_authentication.rb
@@ -113,7 +113,7 @@ def encode_credentials(user_name, password)
def authentication_request(controller, realm)
controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub(/"/, "")}")
- controller.render :text => "HTTP Basic: Access denied.\n", :status => :unauthorized
+ controller.send :render, :text => "HTTP Basic: Access denied.\n", :status => :unauthorized
return false
end
end

0 comments on commit 388f504

Please sign in to comment.