lib/sanitize.rb in sanitize-1.0.7 vs lib/sanitize.rb in sanitize-1.0.8
- old
+ new
@@ -110,9 +110,10 @@
# Delete remaining attributes that use unacceptable protocols.
if @config[:protocols].has_key?(name)
protocol = @config[:protocols][name]
node.raw_attributes.delete_if do |key, value|
+ key = key.to_s.downcase
next false unless protocol.has_key?(key)
next true if value.nil?
if value.to_s.downcase =~ REGEX_PROTOCOL
!protocol[key].include?($1.downcase)