sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r20976: LJSUP-10860: ditemid usage corrected

Committer: vtroitsky
LJSUP-10860: ditemid usage corrected
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-01-24 12:59:24 UTC (rev 20975)
+++ trunk/cgi-bin/ljprotocol.pl	2012-01-24 12:59:31 UTC (rev 20976)
@@ -2812,7 +2812,7 @@
 
     my $itemid = $req->{'itemid'}+0;
     
-    $itemid ||= int( $req->{'ditemid'}+0 / 256);
+    $itemid ||= int( ($req->{'ditemid'} + 0) / 256);
 
     # underage users can't do this
     return fail($err,310) if $u->underage;

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