Changeset 5688
- Timestamp:
- 07/13/07 09:33:46 (1 year ago)
- Files:
-
- django/trunk/django/middleware/common.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/middleware/common.py
r5483 r5688 40 40 # Append a slash if append_slash is set and the URL doesn't have a 41 41 # trailing slash or a file extension. 42 if settings.APPEND_SLASH and ( old_url[1][-1] != '/') and ('.' not in old_url[1].split('/')[-1]):42 if settings.APPEND_SLASH and (not old_url[1].endswith('/')) and ('.' not in old_url[1].split('/')[-1]): 43 43 new_url[1] = new_url[1] + '/' 44 44 if settings.DEBUG and request.method == 'POST':
