mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -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
|
||||
|
||||
def escape(input)
|
||||
CGI.escapeHTML(input).untaint rescue input
|
||||
CGI.escapeHTML(input).untaint
|
||||
end
|
||||
alias_method :h, :escape
|
||||
|
||||
|
||||
Reference in New Issue
Block a user