Remove support for taint_mode on ruby versions that don't support it

This commit is contained in:
Dylan Thacker-Smith
2019-12-19 11:12:51 -05:00
parent 6c6382ed69
commit 40c68c9c83
6 changed files with 60 additions and 37 deletions
+1 -1
View File
@@ -143,8 +143,8 @@ module Liquid
end
def taint_check(context, obj)
return unless obj.tainted?
return if Template.taint_mode == :lax
return unless obj.tainted?
@markup =~ QuotedFragment
name = Regexp.last_match(0)