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

Changeset 1932

Show
Ignore:
Timestamp:
03/18/08 13:28:46
Author:
fumanchu
Message:

Session filename buglet. See http://groups.google.com/group/cherrypy-users/msg/fdaa96edb2f2d079.

Files:

Legend:

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

    r1926 r1932  
    309309    def _get_file_path(self): 
    310310        f = os.path.join(self.storage_path, self.SESSION_PREFIX + self.id) 
    311         if not os.path.normpath(f).startswith(self.storage_path): 
     311        if not os.path.abspath(f).startswith(self.storage_path): 
    312312            raise cherrypy.HTTPError(400, "Invalid session id in cookie.") 
    313313        return f 

Hosted by WebFaction

Log in as guest/cpguest to create tickets