Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r20904: LJSUP-10965 (Remove class and id from po...

Committer: ailyin
LJSUP-10965 (Remove class and id from posts)
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-01-16 09:49:21 UTC (rev 20903)
+++ trunk/cgi-bin/cleanhtml.pl	2012-01-16 10:54:09 UTC (rev 20904)
@@ -1826,6 +1826,9 @@
         return;
     }
 
+    my $cleancss = $opts->{'journalid'} ?
+        ! $LJ::STYLE_TRUSTED{ $opts->{'journalid'} } : 0;
+
     # slow path: need to be run it through the cleaner
     clean($ref, {
         'linkify'       => 1,
@@ -1837,7 +1840,8 @@
         'mode'          => 'allow',
         'remove'        => $event_remove,
         'autoclose'     => \@comment_close,
-        'cleancss'      => !$LJ::STYLE_TRUSTED{ $opts->{journalid} },
+        'cleancss'      => $cleancss,
+        'strongcleancss' => $cleancss,
         'noearlyclose'  => 1,
         'tablecheck'    => 1,
         'ljrepost_allowed' => 1,

Tags: ailyin, andy, livejournal, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments