Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[fotobilder] r1431: LJSUP-6625 (The system doesn't crop the ...

Committer: ailyin
LJSUP-6625 (The system doesn't crop the image if the one of the side less than 100 pxls): first off, fix the issue that prevented one from uploading images less than 4kb in size
U   trunk/lib/FB/Protocol/Request.pm
Modified: trunk/lib/FB/Protocol/Request.pm
===================================================================
--- trunk/lib/FB/Protocol/Request.pm	2010-08-30 04:10:20 UTC (rev 1430)
+++ trunk/lib/FB/Protocol/Request.pm	2010-09-07 07:18:30 UTC (rev 1431)
@@ -511,6 +511,7 @@
     my $buff;
     my $got = 0;
     my $nextread = 4096;
+    if ($length - $got < 4096) { $nextread = $length - $got; }
     while ($nextread && $got <= $length && (my $lastsize = LJ::Request->read($buff, $nextread))) {
         $got += $lastsize;
 

Tags: andy, fotobilder, pm
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