Package: gallery2
Version: 2.0-1
Severity: normal
Tags: patch

Gallery2's zipcart module has a problem when transfering a zip file to
the browser, the way it is reading in the file corrupts the zip.
Below is a quick fix for it (although it it probably not the most
elegant way to patch it, it does solve the problem).


-- From /usr/share/gallery2/modules/zipcart/Download.inc
79,89c
        $data = file_get_contents ($file);
        print $data;
        // if ($fd = $platform->fopen($file,
        // 'rb')) {
        //     while (true) {
        //         $data
        //         =
        //         $platform->fread($fd,
        //         65535);
        //         if
        //         (strlen($data)
        //         ==
        //         0)
        //         {
        //           break;
        //         }
        //         print
        //         $data;
        //         $gallery->guaranteeTimeLimit(30);
        //     }
        //     $platform->fclose($fd);
        // }


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages gallery2 depends on:
ii  apache2-mpm-prefork [apache2 2.0.54-5    traditional model for Apache2
ii  debconf                      1.4.58      Debian configuration management sy
ii  libapache2-mod-php4          4:4.3.10-16 server-side, HTML-embedded scripti
ii  mysql-client                 4.0.24-10   mysql database client binaries
ii  netpbm                       2:10.0-9    Graphics conversion tools
ii  php4                         4:4.3.10-16 server-side, HTML-embedded scripti
ii  php4-cgi                     4:4.3.10-16 server-side, HTML-embedded scripti
ii  php4-mysql                   4:4.3.10-16 MySQL module for php4
ii  wwwconfig-common             0.0.43      Debian web auto configuration

Versions of packages gallery2 recommends:
pn  dcraw                    <none>          (no description available)
ii  ffmpeg                   0.cvs20050313-2 multimedia player, server and enco
ii  imagemagick              6:6.0.6.2-2.4   Image manipulation programs
ii  jhead                    2.41-1          manipulate the non-image part of E
ii  libjpeg-progs            6b-10           Programs for manipulating JPEG fil
ii  mysql-server             4.0.24-10       mysql database server binaries
ii  php4-gd                  4:4.3.10-16     GD module for php4
pn  postgresql-7.4 | postgre <none>          (no description available)
ii  unzip                    5.52-3          De-archiver for .zip files

-- debconf information:
* gallery2/mysql/dbserver: localhost
* gallery2/restart-webserver: true
* gallery2/webserver_type: apache2
* gallery2/mysql/dbname: gallery2
* gallery2/mysql/configure: true
* gallery2/purge: false
* gallery2/mysql/dbadmin: root


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to