madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21089: LJSUP-10119: disable flag for scheduled ...

Committer: sbelyaev
LJSUP-10119: disable flag for scheduled entry preview page
U   trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm	2012-02-03 12:17:05 UTC (rev 21088)
+++ trunk/cgi-bin/Apache/LiveJournal.pm	2012-02-03 12:21:44 UTC (rev 21089)
@@ -869,6 +869,12 @@
             my $delayed_id = $1;
             my $u = LJ::load_user($user);
 
+            if (!LJ::is_enabled("delayed_entries")) {
+                LJ::Request->pnotes ('error' => 'e404');
+                LJ::Request->pnotes ('remote' => LJ::get_remote());
+                return LJ::Request::NOT_FOUND;
+            }
+
             unless ($u) {
                 LJ::Request->pnotes ('error' => 'baduser');
                 LJ::Request->pnotes ('remote' => LJ::get_remote());

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