Changeset 6455
- Timestamp:
- 10/05/07 21:19:15 (1 year ago)
- Files:
-
- django/trunk/django/views/static.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/views/static.py
r5511 r6455 30 30 for part in path.split('/'): 31 31 if not part: 32 # strip empty path components32 # Strip empty path components. 33 33 continue 34 34 drive, part = os.path.splitdrive(part) 35 35 head, part = os.path.split(part) 36 36 if part in (os.curdir, os.pardir): 37 # strip '.' amd '..' in path37 # Strip '.' and '..' in path. 38 38 continue 39 39 newpath = os.path.join(newpath, part).replace('\\', '/')
