Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rendering is protected

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 388f504f6d8c7def28eb88d7f62c9267600e0f56 1 parent 20eb59a
@dhh dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/http_authentication.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.