[lms-commits] CVS update of lms/modules (dbview.php)

LMS CVS cvs w lms.org.pl
Wto, 7 Cze 2011, 22:51:05 CEST


Date: Tuesday, June 7, 2011 @ 22:51:05
Author: chilek
Path: /cvsroot/lms/modules

Modified: dbview.php

- fixed bug in dbview bound to inproper Content-Length header


Diff URLs:
http://cvs.lms.org.pl/viewvc/Development/lms/modules/dbview.php.diff?&r1=1.43&r2=1.44


Index: lms/modules/dbview.php
diff -u lms/modules/dbview.php:1.43 lms/modules/dbview.php:1.44
--- lms/modules/dbview.php:1.43	Tue Jan 18 09:12:22 2011
+++ lms/modules/dbview.php	Tue Jun  7 22:51:05 2011
@@ -21,7 +21,7 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
  *  USA.
  *
- *  $Id: dbview.php,v 1.43 2011/01/18 08:12:22 alec Exp $
+ *  $Id: dbview.php,v 1.44 2011/06/07 20:51:05 chilek Exp $
  */
 
 function readfile_chunked($filename,$retbytes=true)
@@ -57,7 +57,7 @@
 else
 	header('Content-Disposition: attachment; filename=lms-backup-'.date('Ymd-His',$_GET['db']).'.sql');
 header('Pragma: public');
-header('Content-Length: '.$filename);
+header('Content-Length: '.filesize($filename));
 set_time_limit(0);
 readfile_chunked($filename, false);
 


Więcej informacji o liście lms-commits