a/src/filters/rclzip b/src/filters/rclzip
...
...
38
#
38
#
39
class ZipExtractor:
39
class ZipExtractor:
40
    def __init__(self, em):
40
    def __init__(self, em):
41
        self.currentindex = 0
41
        self.currentindex = 0
42
        self.em = em
42
        self.em = em
43
43
            
44
    def extractone(self, ipath):
44
    def extractone(self, ipath):
45
        #self.em.rclog("extractone: [%s]" % ipath)
45
        #self.em.rclog("extractone: [%s]" % ipath)
46
        docdata = ""
46
        docdata = ""
47
        try:
47
        try:
48
            info = self.zip.getinfo(ipath)
48
            info = self.zip.getinfo(ipath)
49
            # There could be a 4GB Iso in the zip. We have to set a limit
49
            # There could be a 4GB Iso in the zip. We have to set a limit
50
            if info.file_size > 50 * 1024*1024:
50
            if info.file_size > self.em.maxmembersize:
51
                self.em.rclog("extractone: entry %s size %d too big" %
51
                self.em.rclog("extractone: entry %s size %d too big" %
52
                              (ipath, info.file_size))
52
                              (ipath, info.file_size))
53
                docdata = ""
53
                docdata = ""
54
                #raise BadZipfile()
54
                #raise BadZipfile()
55
            else:
55
            else: