[dev] Re: [cvs] commit: horde/lib/MIME/Viewer tgz.php
Michael Cochrane
mike@graftonhall.co.nz
Fri, 21 Jun 2002 17:59:17 +0100
Quoting Jan Schneider <jan@ammma.de>:
> jan 2002/06/21 09:49:48 PDT
>
> Modified files:
> lib/MIME/Viewer tgz.php
> Log:
> Make sure the TGZ driver works when both a comment and filename are
> present in the archive header.
>
> Submitted by: Michael Cochrane <mike@graftonhall.co.nz>
Opps... spoke too soon on that patch... bit more error checking to add... and a
missing subtype.
- Mike :-)
Index: config/mime_drivers.php.dist
===================================================================
RCS file: /httpd/horde/horde/config/mime_drivers.php.dist,v
retrieving revision 1.43
diff -I$Horde -I$Revision -I$Date -r1.43 mime_drivers.php.dist
137a138
> 'application/x-gzip',
Index: lib/MIME/Viewer/tgz.php
===================================================================
RCS file: /httpd/horde/horde/lib/MIME/Viewer/tgz.php,v
retrieving revision 1.18
diff -I$Horde -I$Revision -I$Date -r1.18 tgz.php
29c29,30
< $subtype == 'tgz') {
---
> $subtype == 'tgz' ||
> $subtype == 'x-gzip') {
116c117,121
< $file['type'] = $types[$info['typeflag']];
---
> if (isset($types[$info['typeflag']])) {
> $file['type'] = $types[$info['typeflag']];
> } else {
> $file['type'] = '';
> }
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/