summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/ZipLib.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/ZipLib.class.php b/inc/ZipLib.class.php
index 767d324a9..3b39ad1b6 100644
--- a/inc/ZipLib.class.php
+++ b/inc/ZipLib.class.php
@@ -239,7 +239,8 @@ class ZipLib
while ($pos < $size)
{
- $byte = @fread($zip, 1); $bytes=($bytes << 8) | Ord($byte);
+ $byte = @fread($zip, 1);
+ $bytes=(($bytes << 8) & 0xFFFFFFFF) | Ord($byte);
if ($bytes == 0x504b0506){ $pos++; break; } $pos++;
}