Changeset 756
- Timestamp:
- 10/27/05 19:14:53
- Files:
-
- trunk/cherrypy/lib/filter/staticfilter.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/filter/staticfilter.py
r580 r756 42 42 return 43 43 44 path = request.objectPath or request.path 45 44 46 regex = config.get('staticFilter.match', '') 45 47 if regex: 46 48 import re 47 if not re.search(regex, request.path):49 if not re.search(regex, path): 48 50 return 49 51 … … 55 57 section = "/" 56 58 section = section.rstrip(r"\/") 57 extraPath = request.path[len(section) + 1:]59 extraPath = path[len(section) + 1:] 58 60 extraPath = extraPath.lstrip(r"\/") 59 61 extraPath = urllib.unquote(extraPath)

