Permalink
Browse files

Fixed #896 -- Fixed error in filesystem serve view in Windows. Thanks…

…, Petar Marić and nesh

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 827ebe5 commit 18c7ed74e4fbdde9cb839a4031b8683053d97952 @adrianholovaty adrianholovaty committed Nov 24, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/views/static.py
View
2 django/views/static.py
@@ -34,7 +34,7 @@ def serve(request, path, document_root=None, show_indexes=False):
if part in (os.curdir, os.pardir):
# strip '.' amd '..' in path
continue
- newpath = os.path.join(newpath, part)
+ newpath = os.path.join(newpath, part).replace('\\', '/')
if newpath and path != newpath:
return HttpResponseRedirect(newpath)
fullpath = os.path.join(document_root, newpath)

0 comments on commit 18c7ed7

Please sign in to comment.