[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[4713] branches/1.3



Revision: 4713
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4713&view=rev
Author:   einhverfr
Date:     2012-05-14 07:53:28 +0000 (Mon, 14 May 2012)
Log Message:
-----------
Correcting Form.pm so that max_post_size configuration variable acts the same in new and old code

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/LedgerSMB/Form.pm
    branches/1.3/lsmb-request.pl

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2012-05-14 06:26:18 UTC (rev 4712)
+++ branches/1.3/Changelog	2012-05-14 07:53:28 UTC (rev 4713)
@@ -13,6 +13,7 @@
 * Fixed file uploads sometimes hanging (Chris T)
 * Fixed file uploads sometimes throwing action not found errors (Chris T)
 * Fixed helpful DB error messages not displayed (Chris T)
+* Fixing Form.pm so that max_post_size = -1 behaves as in CGI::Simple (Chris T)
 
 Mark L is Matt Lubratt
 

Modified: branches/1.3/LedgerSMB/Form.pm
===================================================================
--- branches/1.3/LedgerSMB/Form.pm	2012-05-14 06:26:18 UTC (rev 4712)
+++ branches/1.3/LedgerSMB/Form.pm	2012-05-14 07:53:28 UTC (rev 4713)
@@ -96,7 +96,9 @@
 
     $ENV{CONTENT_LENGTH} = 0 unless defined $ENV{CONTENT_LENGTH};
 
-    if ( ( $ENV{CONTENT_LENGTH} != 0 ) && ( $ENV{CONTENT_LENGTH} > $LedgerSMB::Sysconfig::max_post_size ) ) {
+    if ( ( $ENV{CONTENT_LENGTH} != 0 ) 
+         && ( $ENV{CONTENT_LENGTH} > $LedgerSMB::Sysconfig::max_post_size ) 
+         && $LedgerSMB::Sysconfig::max_post_size  != -1) {
         print "Status: 413\n Request entity too large\n\n";
         die "Error: Request entity too large\n";
     }

Modified: branches/1.3/lsmb-request.pl
===================================================================
--- branches/1.3/lsmb-request.pl	2012-05-14 06:26:18 UTC (rev 4712)
+++ branches/1.3/lsmb-request.pl	2012-05-14 07:53:28 UTC (rev 4713)
@@ -26,7 +26,7 @@
 
 $| = 1;
 
-#binmode (STDIN, ':utf8');
+binmode (STDIN, ':bytes');
 binmode (STDOUT, ':utf8');
 use LedgerSMB::User;
 use LedgerSMB;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.