Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1533

Show
Ignore:
Timestamp:
12/16/06 14:20:07
Author:
fumanchu
Message:

Fixed serious buglet in SizeCheckWrapper? (allowed unmonitored read).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/http.py

    r1442 r1533  
    423423     
    424424    def __iter__(self): 
    425         return self.rfile 
     425        return self 
    426426     
    427427    def next(self): 
     
    429429        self.bytes_read += len(data) 
    430430        self._check_length() 
    431 ##      Normally the next method must raise StopIteration when it 
    432 ##      fails but CP expects MaxSizeExceeded  
    433 ##        try: 
    434 ##            self._check_length() 
    435 ##        except: 
    436 ##            raise StopIteration() 
    437431        return data 
    438432 

Hosted by WebFaction

Log in as guest/cpguest to create tickets