Skip to content

Commit

Permalink
fix for Rails CVE-2012-5664
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Jan 2, 2013
1 parent 422cef8 commit 81e9f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/lib/hobo/controller/user_base.rb
Expand Up @@ -110,7 +110,7 @@ def hobo_logout(options={})

def hobo_forgot_password
if request.post?
user = model.find_by_email_address(params[:email_address])
user = model.find_by_email_address(params[:email_address].to_s)
if user && (!block_given? || yield(user))
user.lifecycle.request_password_reset!(:nobody)
end
Expand Down

0 comments on commit 81e9f64

Please sign in to comment.