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

[ljcom] r9475: LJSUP-6749 (If we cross-post the entry/c...

Committer: ailyin
LJSUP-6749 (If we cross-post the entry/comment that contains username we should cut the tags)
U   trunk/cgi-bin/LJ/Worker/Repost.pm
Modified: trunk/cgi-bin/LJ/Worker/Repost.pm
===================================================================
--- trunk/cgi-bin/LJ/Worker/Repost.pm	2010-09-08 07:41:41 UTC (rev 9474)
+++ trunk/cgi-bin/LJ/Worker/Repost.pm	2010-09-08 08:04:06 UTC (rev 9475)
@@ -17,7 +17,9 @@
 sub cleanup {
     my ($class, $what) = @_;
 
-    $what =~ s/<.*?>//g;
+    LJ::CleanHTML::clean_comment(\$what);
+
+    $what =~ s/<.*?>/ /g;
     $what =~ s/\s+/ /g;
     $what =~ s/^\s+//;
     $what =~ s/\s+$//;

Tags: andy, ljcom, 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