Django

Code

Changeset 5873

Show
Ignore:
Timestamp:
08/12/07 07:01:31 (1 year ago)
Author:
mtredinnick
Message:

Clarified the reasoning in a comment.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/http/__init__.py

    r5844 r5873  
    8585                    continue 
    8686                # IE submits the full path, so trim everything but the basename. 
    87                 # (We can't use os.path.basename because it expects Linux paths.) 
     87                # (We can't use os.path.basename because that uses the server's 
     88                # directory separator, which may not be the same as the 
     89                # client's one.) 
    8890                filename = name_dict['filename'][name_dict['filename'].rfind("\\")+1:] 
    8991                FILES.appendlist(name_dict['name'], {