Skip to content

Commit 39a2fd8

Browse files
Use actual link to link to security guide [ci-skip]
1 parent a9a12a1 commit 39a2fd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/lib/active_record/querying.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ module Querying
4646
# Post.find_by_sql ["SELECT title FROM posts WHERE author = ? AND created > ?", author_id, start_date]
4747
# Post.find_by_sql ["SELECT body FROM comments WHERE author = :user_id OR approved_by = :user_id", { :user_id => user_id }]
4848
#
49-
# Note that building your own SQL query string from user input may expose your application to
50-
# injection attacks (https://guides.rubyonrails.org/security.html#sql-injection).
49+
# Note that building your own SQL query string from user input {may expose your application to
50+
# injection attacks}[https://guides.rubyonrails.org/security.html#sql-injection].
5151
def find_by_sql(sql, binds = [], preparable: nil, allow_retry: false, &block)
5252
result = with_connection do |c|
5353
_query_by_sql(c, sql, binds, preparable: preparable, allow_retry: allow_retry)

0 commit comments

Comments
 (0)