Django

Code

Changeset 1402

Show
Ignore:
Timestamp:
11/24/05 16:41:05 (2 years ago)
Author:
adrian
Message:

Fixed #896 -- Fixed error in filesystem serve view in Windows. Thanks, Petar Marić and nesh

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/views/static.py

    r1331 r1402  
    3535            # strip '.' amd '..' in path 
    3636            continue 
    37         newpath = os.path.join(newpath, part) 
     37        newpath = os.path.join(newpath, part).replace('\\', '/') 
    3838    if newpath and path != newpath: 
    3939        return HttpResponseRedirect(newpath)