mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
SECURITY: Possible SQL injection.
This commit is contained in:
parent
e99a73e16d
commit
da21fad10b
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class ScreenedIpAddress < ActiveRecord::Base
|
|||
#
|
||||
# http://www.postgresql.org/docs/9.1/static/datatype-net-types.html
|
||||
# http://www.postgresql.org/docs/9.1/static/functions-net.html
|
||||
find_by("'#{ip_address.to_s}' <<= ip_address")
|
||||
find_by("? <<= ip_address", ip_address.to_s)
|
||||
end
|
||||
|
||||
def self.should_block?(ip_address)
|
||||
|
|
Loading…
Reference in a new issue