Skip to content

Commit

Permalink
fix sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed May 15, 2023
1 parent 782a874 commit 1718cf5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def query
attr_reader :relation

def default_metadata
sql("'#{DEFAULT_METADATA}'")
sql(ActiveRecord::Base::sanitize_sql(["?", DEFAULT_METADATA]))
end

def votes_count
Expand Down

0 comments on commit 1718cf5

Please sign in to comment.