alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r23030: LJSUP-13827: Can't open entry with cut i...

Committer: afedorov
LJSUP-13827: Can't open entry with cut in moderation queue

U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-10-02 11:50:46 UTC (rev 23029)
+++ trunk/cgi-bin/cleanhtml.pl	2012-10-02 13:38:53 UTC (rev 23030)
@@ -751,7 +751,7 @@
                     my $url = LJ::ehtml($cut);
                     $newdata .= "<div>" if $tag eq "div";
                     my $data_ids = "";
-                    if ($opts->{entry_url}) {
+                    if ($opts->{entry_url} && $opts->{entry_url} ne '#') {
                         my $entry = LJ::Entry->new_from_url($opts->{entry_url});
                         my $ditemid = 0;
                         my $journalid = $entry->journalid;

Tags: afedorov, livejournal, pl, red_alf
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