juks (juks) wrote in changelog,
juks
juks
changelog

[livejournal] r18014: LJM-1588 Rules of post parsing

Committer: iaskarov
LJM-1588 Rules of post parsing
U   trunk/cgi-bin/LJ/Text.pm
Modified: trunk/cgi-bin/LJ/Text.pm
===================================================================
--- trunk/cgi-bin/LJ/Text.pm	2011-01-12 12:26:46 UTC (rev 18013)
+++ trunk/cgi-bin/LJ/Text.pm	2011-01-13 05:33:09 UTC (rev 18014)
@@ -232,7 +232,7 @@
         unless $bytes || $chars;
         
     if($strip_html) {
-        $force_ellipsis = ($str =~ /<img/i) ? 1 : 0;
+        $force_ellipsis = ($str =~ /<(img|embed|object)/i) ? 1 : 0;
         $str = LJ::strip_html($str, { use_space => 1 });
     }
 

Tags: juks, livejournal, pm
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