From 744d79e3d526f4fcd64031ed6eb63d91b3c36de4 Mon Sep 17 00:00:00 2001
From: bernd <bernd@bzed.de>
Date: Tue, 6 Mar 2007 01:59:40 +0100
Subject: [PATCH] FS#1011-fix

darcs-hash:20070306005940-9f3ed-ac84cbb540ec7830aedba5b3451e58522decfffa.gz
---
 inc/ZipLib.class.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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++;
   }
 
-- 
GitLab