mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed typo in comment.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -29,12 +29,12 @@ def serve(request, path, document_root=None, show_indexes=False): | |||||||
|     newpath = '' |     newpath = '' | ||||||
|     for part in path.split('/'): |     for part in path.split('/'): | ||||||
|         if not part: |         if not part: | ||||||
|             # strip empty path components |             # Strip empty path components. | ||||||
|             continue |             continue | ||||||
|         drive, part = os.path.splitdrive(part) |         drive, part = os.path.splitdrive(part) | ||||||
|         head, part = os.path.split(part) |         head, part = os.path.split(part) | ||||||
|         if part in (os.curdir, os.pardir): |         if part in (os.curdir, os.pardir): | ||||||
|             # strip '.' amd '..' in path |             # Strip '.' and '..' in path. | ||||||
|             continue |             continue | ||||||
|         newpath = os.path.join(newpath, part).replace('\\', '/') |         newpath = os.path.join(newpath, part).replace('\\', '/') | ||||||
|     if newpath and path != newpath: |     if newpath and path != newpath: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user