Showing posts with the label ruby-on-rails

[FIXED] How to Query with multiple conditions on same field in Rails

Issue I have this array: cars = ["green", "blue", "red", "yello…

[FIXED] How to sanitize Arel SQL?

Issue I have the following Arel SQL: Arel.sql("(users.last_donated_at IS NOT NULL AND users.l…

[FIXED] Possible SQL injection in a controller

Issue I have this piece of code in Ruby, which I believe could be a SQL injection spot @remaining…

[FIXED] Safely escape strings for SQL fragments for joins, limits, selects, and so on (not conditions) on Rails

Issue In Ruby on Rails, for conditions, it's easy to make SQL-injection-proof queries: :condi…

[FIXED] Dynamic where clause in active record avoiding sql injection

Issue do you know how to build a dynamic query avoiding sql injection ? property = 'foo' …

[FIXED] Is the following code snippet vulnerable to SQL injection in Rails 5?

Issue Is the following code snippet vulnerable to SQL injection in Rails 5 if the order parameter i…

[FIXED] What is better practice when storing a users full name in the database? 1 or 2 columns?

Issue Is it considered better practice to store a first_name and a last_name in 2 separate columns?…