Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Clarified the reasoning in a comment.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5873 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 78dfdd5648d0fc6060e03a2edbe738779d132684 1 parent 9aa81c5
Malcolm Tredinnick authored August 12, 2007

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  django/http/__init__.py
4  django/http/__init__.py
@@ -84,7 +84,9 @@ def parse_file_upload(header_dict, post_data):
84 84
                 if not name_dict['filename'].strip():
85 85
                     continue
86 86
                 # 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.)
88 90
                 filename = name_dict['filename'][name_dict['filename'].rfind("\\")+1:]
89 91
                 FILES.appendlist(name_dict['name'], {
90 92
                     'filename': filename,

0 notes on commit 78dfdd5

Please sign in to comment.
Something went wrong with that request. Please try again.