Author: mtredinnick
Date: 2007-08-12 07:01:31 -0500 (Sun, 12 Aug 2007)
New Revision: 5873
Modified:
django/trunk/django/http/__init__.py
Log:
Clarified the reasoning in a comment.
Modified: django/trunk/django/http/__init__.py
===================================================================
--- django/trunk/django/http/__init__.py 2007-08-12 10:47:10 UTC (rev
5872)
+++ django/trunk/django/http/__init__.py 2007-08-12 12:01:31 UTC (rev
5873)
@@ -84,7 +84,9 @@
if not name_dict['filename'].strip():
continue
# IE submits the full path, so trim everything but the
basename.
- # (We can't use os.path.basename because it expects Linux
paths.)
+ # (We can't use os.path.basename because that uses the server's
+ # directory separator, which may not be the same as the
+ # client's one.)
filename =
name_dict['filename'][name_dict['filename'].rfind("\\")+1:]
FILES.appendlist(name_dict['name'], {
'filename': filename,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---