Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22063: LJSUP-12128: Draft functionality on the ...

Committer: anazarov
LJSUP-12128: Draft functionality on the new post page
U   trunk/htdocs/tools/endpoints/draft.bml
Modified: trunk/htdocs/tools/endpoints/draft.bml
===================================================================
--- trunk/htdocs/tools/endpoints/draft.bml	2012-05-25 10:51:26 UTC (rev 22062)
+++ trunk/htdocs/tools/endpoints/draft.bml	2012-05-25 11:06:07 UTC (rev 22063)
@@ -15,8 +15,9 @@
         or return $err->("User logged in");
 
     # check referers. should only be accessed from update.bml at the moment
-    LJ::check_referer("/update.bml")
-        or return $err->("Invalid referer");
+    if ( $LJ::DISABLED{'post_controller'} ) {
+        return $err->("Invalid referer") unless LJ::check_referer("/update.bml");
+    }
 
     my $ret = {};
 

Tags: anazarov, bml, livejournal, nfokz
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