Changeset 26
- Timestamp:
- 12/26/06 09:23:18 (2 years ago)
- Files:
-
- trunk/lib/CSS/Cleaner.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/CSS/Cleaner.pm
r25 r26 122 122 my $check_phrases = sub { 123 123 my $str = shift; 124 if ($$str =~ m/ \bdata:\b|javascript|jscript|livescript|vbscript|expression|eval|cookie125 |\bwindow\b|\bparent\b|\bthis\b|behaviou?r|moz-binding /ix) {126 my $what = lc $ &;124 if ($$str =~ m/(\bdata:\b|javascript|jscript|livescript|vbscript|expression|eval|cookie 125 |\bwindow\b|\bparent\b|\bthis\b|behaviou?r|moz-binding)/ix) { 126 my $what = lc $1; 127 127 $$ref = "/* suspect CSS: potential scripting: $what */"; 128 128 return 1;
