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

Changeset 756

Show
Ignore:
Timestamp:
10/27/05 19:14:53
Author:
fumanchu
Message:

Fix (partial?) for #373. Fixes staticFilter.

Files:

Legend:

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

    r580 r756  
    4242            return 
    4343         
     44        path = request.objectPath or request.path 
     45         
    4446        regex = config.get('staticFilter.match', '') 
    4547        if regex: 
    4648            import re 
    47             if not re.search(regex, request.path): 
     49            if not re.search(regex, path): 
    4850                return 
    4951         
     
    5557                section = "/" 
    5658            section = section.rstrip(r"\/") 
    57             extraPath = request.path[len(section) + 1:] 
     59            extraPath = path[len(section) + 1:] 
    5860            extraPath = extraPath.lstrip(r"\/") 
    5961            extraPath = urllib.unquote(extraPath) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets