mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Fix case where a variable name is falsy
This commit is contained in:
@@ -83,7 +83,7 @@ module Liquid
|
||||
end
|
||||
|
||||
def render(context)
|
||||
return ''.freeze unless @name
|
||||
return ''.freeze if @name.nil?
|
||||
@filters.inject(context.evaluate(@name)) do |output, (filter_name, filter_args, filter_kwargs)|
|
||||
filter_args = evaluate_filter_expressions(context, filter_args, filter_kwargs)
|
||||
output = context.invoke(filter_name, output, *filter_args)
|
||||
|
||||
Reference in New Issue
Block a user