Fix check for encrypted file (bug #1596304).

This commit is contained in:
Michal Čihař
2006-11-19 20:57:22 +00:00
parent 56011723e6
commit 1f02ff0a22
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog
$Id$
$Source$
2006-11-19 Michal Čihař <michal@cihar.com>
* libraries/unzip.lib.php: Fix check for encrypted file (bug #1596304).
2006-11-19 Marc Delisle <lem9@users.sourceforge.net>
* scripts/upgrade.pl: bug #1599173, adapt for new filename structure,
thanks to Linas Gricius

View File

@@ -278,7 +278,7 @@
// Retrieving local file header information
$aP = unpack('v1VN/v1GPF/v1CM/v1FT/v1FD/V1CRC/V1CS/V1UCS/v1FNL', $vZ);
// Check if data is encrypted
$bE = ($aP['GPF'] && 0x0001) ? TRUE : FALSE;
$bE = ($aP['GPF'] & 0x0001) ? TRUE : FALSE;
$nF = $aP['FNL'];
// Special case : value block after the compressed data