Fix check for encrypted file (bug #1596304).

This commit is contained in:
Michal Čihař
2006-11-19 20:57:24 +00:00
parent 99da0295ea
commit 265958367e
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ $HeadURL$
* themes/darkblue_orange/css/theme_right.css.php, * themes/darkblue_orange/css/theme_right.css.php,
themes/original/css/theme_right.css.php, themes/original/css/theme_right.css.php,
libraries/database_interface.lib.php: Fix typos (bug #1597137). libraries/database_interface.lib.php: Fix typos (bug #1597137).
* libraries/unzip.lib.php: Fix check for encrypted file (bug #1596304).
2006-11-19 Marc Delisle <lem9@users.sourceforge.net> 2006-11-19 Marc Delisle <lem9@users.sourceforge.net>
* pmd_general.php, pmd_get_info.php, pmd/scripts/move.js, * pmd_general.php, pmd_get_info.php, pmd/scripts/move.js,

View File

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