Fixed issue where "nil" value for "escape" filter breaks rendering

Closes #664
This commit is contained in:
Tanel Jakobsoo
2015-11-06 16:32:02 +02:00
parent 74cc41ce74
commit 8d5a907dc8
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ module Liquid
end
def escape(input)
CGI.escapeHTML(input).untaint
CGI.escapeHTML(input).untaint unless input.nil?
end
alias_method :h, :escape