vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r18963: LJSV-1553: Error when trying to preview ...

Committer: vsukhanov
LJSV-1553: Error when trying to preview post with embedded flash by the unauthorized user.
U   trunk/htdocs/preview/entry.bml
A   trunk/htdocs/preview/entry.bml.text.local
Modified: trunk/htdocs/preview/entry.bml
===================================================================
--- trunk/htdocs/preview/entry.bml	2011-04-25 04:42:24 UTC (rev 18962)
+++ trunk/htdocs/preview/entry.bml	2011-04-25 08:28:57 UTC (rev 18963)
@@ -28,6 +28,8 @@
     }
     $up = $u unless $up;
 
+    return $ML{'.error.no_user'} unless $up and $u;
+
     ### Set up preview variables
     my ($ditemid, $anum, $itemid);
     my %req = ( 'usejournal' => $POST{'usejournal'}, );

Added: trunk/htdocs/preview/entry.bml.text.local
===================================================================
--- trunk/htdocs/preview/entry.bml.text.local	                        (rev 0)
+++ trunk/htdocs/preview/entry.bml.text.local	2011-04-25 08:28:57 UTC (rev 18963)
@@ -0,0 +1,2 @@
+.error.no_journal=Missing journal name.
+

Tags: bml, livejournal, local, vadvs
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