madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20487: LJSUP-10280: When user set wrong date is...

Committer: sbelyaev
LJSUP-10280: When user set wrong date is displayed incorrect error
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2011-11-07 11:26:49 UTC (rev 20486)
+++ trunk/cgi-bin/ljprotocol.pl	2011-11-07 11:48:50 UTC (rev 20487)
@@ -2653,6 +2653,10 @@
             return fail( $err, 217 ) if $req->{itemid} || $req->{anum};
             return fail( $err, 215 ) unless $req->{tz};                        
 
+            # updating an entry:
+            return undef
+                unless common_event_validation($req, $err, $flags);
+
             $req->{ext}->{flags} = $flags;
             $req->{ext}->{flags}->{u} = undef; # it's no need to be stored
             $req->{usejournal} = $req->{usejournal}  || '';

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