Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Gauntlet section is out of date with html5lib and doesn't allow for t…

  • Loading branch information...
commit ca618fc5f8e6ba146e2d4731c0361368c4b464b2 1 parent 4630255
Jon Calhoun authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/loofah/html5/scrub.rb
2  lib/loofah/html5/scrub.rb
@@ -57,7 +57,7 @@ def scrub_css style
57 57 style = style.to_s.gsub(/url\s*\(\s*[^\s)]+?\s*\)\s*/, ' ')
58 58
59 59 # gauntlet
60   - return '' unless style =~ /^([:,;#%.\sa-zA-Z0-9!]|\w-\w|\'[\s\w]+\'|\"[\s\w]+\"|\([\d,\s]+\))*$/
  60 + return '' unless style =~ /^([-:,;#%.\sa-zA-Z0-9!]|\w-\w|\'[\s\w]+\'|\"[\s\w]+\"|\([\d,\s]+\))*$/
61 61 return '' unless style =~ /^\s*([-\w]+\s*:[^:;]*(;\s*|$))*$/
62 62
63 63 clean = []

0 comments on commit ca618fc

Please sign in to comment.
Something went wrong with that request. Please try again.