[miscperl] r267: LJSUP-8979 (Need to block ebeded tags of...
Committer: ailyin
LJSUP-8979 (Need to block ebeded tags of social nexworks pluggins)U trunk/HTMLCleaner.pm
Modified: trunk/HTMLCleaner.pm
===================================================================
--- trunk/HTMLCleaner.pm 2011-05-24 04:11:06 UTC (rev 266)
+++ trunk/HTMLCleaner.pm 2011-06-03 07:19:09 UTC (rev 267)
@@ -49,8 +49,9 @@
my @allowed_tags = ('lj-embed');
- push @eating, $tagname if
- $self->{'eat_tag'}->{$tagname} && ! grep { lc $tagname eq $_ } @allowed_tags;
+ push @eating, $tagname
+ if ( $self->{'eat_tag'}->{$tagname} && ! grep { lc $tagname eq $_ } @allowed_tags )
+ || $tagname =~ /^(?:g|fb):/;
return if @eating;
