Skip to content

Commit

Permalink
Don't convert user input to a symbol.
Browse files Browse the repository at this point in the history
This can crash the box we're running on. :'(
  • Loading branch information
steveklabnik committed Mar 8, 2013
1 parent 47a8bfb commit 168d5f7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/security_release_practice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

module SecurityReleasePractice
def super_secure_calculation(input)
input.to_sym
input.to_i + 5
end
end

0 comments on commit 168d5f7

Please sign in to comment.