Projects STRLCPY Hunt3r Commits 7f5c094b
🤬
  • ■ ■ ■ ■
    backend/app/models/subdomain.rb
    skipped 1 lines
    2 2   belongs_to :domain
    3 3   
    4 4   scope :filtered_by_subdomain, ->(subdomain) { where('url LIKE ?', "%#{subdomain}%") }
    5  - scope :filtered_by_technology, ->(technology) { where('infos @> ?', "{\"technologies\": [{\"name\":\"#{sanitize_sql_like(technology)}\"}]}") }
     5 + scope :filtered_by_technology, ->(technology) { where('infos @> ?', "{\"technologies\": [{\"name\":\"#{technology.gsub('"', '')}\"}]}") }
    6 6   scope :filtered_by_status_code, ->(status_code) { where('infos @> ?', "{\"status_code\": #{status_code}}") if status_code.to_i > 0 }
    7 7  end
    8 8   
Please wait...
Page is in error, reload to recover