mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-26 13:45:13 -07:00
Merge pull request #611 from Shopify/no-escape-rescue
Remove standard exception rescue in escape filter.
This commit is contained in:
@@ -33,7 +33,7 @@ module Liquid
|
|||||||
end
|
end
|
||||||
|
|
||||||
def escape(input)
|
def escape(input)
|
||||||
CGI.escapeHTML(input).untaint rescue input
|
CGI.escapeHTML(input).untaint
|
||||||
end
|
end
|
||||||
alias_method :h, :escape
|
alias_method :h, :escape
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user