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

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

Committer: ailyin
LJSUP-10965 (Remove class and id from posts): fix spacing; no functional changes
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-01-16 10:54:09 UTC (rev 20904)
+++ trunk/cgi-bin/cleanhtml.pl	2012-01-16 10:55:54 UTC (rev 20905)
@@ -540,7 +540,7 @@
                                 last unless $opts->{journalid};
                                 my $u = LJ::load_userid($opts->{journalid});
                                 last unless $u && $u->is_personal;
-                            } 
+                            }
                             $src_allowed = 1;
                             last;
                         }
@@ -910,7 +910,7 @@
                         delete $hash->{$attr} unless $tag eq "object";
                         next;
                     }
-                    
+
                     if ($attr eq 'width' || $attr eq 'height' ) {
                         if ($hash->{$attr} > 1024*2) {
                             $hash->{$attr} = 1024*2;
@@ -1150,11 +1150,11 @@
                 ## LJSUP-10811: due to security issue only Flash is allowed
                 ## LJSV-1995: Embedded video from http://video.yandex.ru doesn't shown
                 if ($tag eq 'embed'){
-                   $hash->{type} = 'application/x-shockwave-flash'; 
+                   $hash->{type} = 'application/x-shockwave-flash';
                    push @$attrs => 'type' unless grep { $_ eq 'type' } @$attrs;
                 }
                 if ($tag eq 'object' and ($hash->{data} || $hash->{src})){
-                   $hash->{type} = 'application/x-shockwave-flash'; 
+                   $hash->{type} = 'application/x-shockwave-flash';
                    push @$attrs => 'type' unless grep { $_ eq 'type' } @$attrs;
                 }
 
@@ -1831,19 +1831,19 @@
 
     # slow path: need to be run it through the cleaner
     clean($ref, {
-        'linkify'       => 1,
-        'wordlength'    => $wordlength,
-        'addbreaks'     => $opts->{'preformatted'} ? 0 : 1,
-        'cutpreview'    => $opts->{'cutpreview'},
-        'posterid'      => $opts->{'posterid'},
-        'eat'           => $event_eat,
-        'mode'          => 'allow',
-        'remove'        => $event_remove,
-        'autoclose'     => \@comment_close,
-        'cleancss'      => $cleancss,
-        'strongcleancss' => $cleancss,
-        'noearlyclose'  => 1,
-        'tablecheck'    => 1,
+        'linkify'          => 1,
+        'wordlength'       => $wordlength,
+        'addbreaks'        => $opts->{'preformatted'} ? 0 : 1,
+        'cutpreview'       => $opts->{'cutpreview'},
+        'posterid'         => $opts->{'posterid'},
+        'eat'              => $event_eat,
+        'mode'             => 'allow',
+        'remove'           => $event_remove,
+        'autoclose'        => \@comment_close,
+        'cleancss'         => $cleancss,
+        'strongcleancss'   => $cleancss,
+        'noearlyclose'     => 1,
+        'tablecheck'       => 1,
         'ljrepost_allowed' => 1,
         %$opts,
     });

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