mirror of
https://github.com/kemko/liquid.git
synced 2026-01-04 17:25:41 +03:00
Use public_send on condition creation
This makes sure you can't call Kernel methods like `throw`
This commit is contained in:
@@ -63,7 +63,7 @@ module Liquid
|
||||
raise(SyntaxError.new(options[:locale].t("errors.syntax.if"))) unless expressions.shift.to_s =~ Syntax
|
||||
|
||||
new_condition = Condition.new($1, $2, $3)
|
||||
new_condition.send(operator, condition)
|
||||
new_condition.public_send(operator, condition)
|
||||
condition = new_condition
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user