changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r23455: LJSUP-14453: all links with <a href shou...

Committer: tnurutdinov
LJSUP-14453: all links with <a href should be go to Top spam urls
U   trunk/cgi-bin/LJ/Talk/Post.pm
Modified: trunk/cgi-bin/LJ/Talk/Post.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk/Post.pm	2012-12-11 14:37:06 UTC (rev 23454)
+++ trunk/cgi-bin/LJ/Talk/Post.pm	2012-12-12 07:28:10 UTC (rev 23455)
@@ -1,6 +1,7 @@
 package LJ::Talk::Post;
 use strict;
 
+use LJ::SpamFilter;
 use LJ::Admin::Spam::Urls;
 use LJ::EventLogRecord::NewComment;
 
@@ -181,7 +182,7 @@
         LJ::MemCache::set([$journalu->{'userid'}, "talkprop:$journalu->{'userid'}:$jtalkid"], $hash);
     }
 
-    my %urls = map { $_ => 1 } LJ::get_urls($comment->{body});
+    my %urls = map { $_ => 1 } LJ::SpamFilter::get_urls($comment->{body});
     my @urls = keys %urls;
 
     # record up to $LJ::TALK_MAX_URLS urls from a comment

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