Permalink
Browse files

Windows support for resource serving.

  • Loading branch information...
Bruce Coble authored and ralphbean committed Mar 13, 2012
1 parent 6c06384 commit 0b939179abbd18eca7987ae6b31ad21e39c9a3d0
Showing with 1 addition and 1 deletion.
  1. +1 −1 tw2/core/resources.py
@@ -360,7 +360,7 @@ def __call__(self, environ, start_response):
if '..' in path: # protect against directory traversal
raise IOError()
for d in self._dirs:
if path.startswith(d):
if path.startswith(d.replace('\\', '/')):
break
else:
raise IOError()

0 comments on commit 0b93917

Please sign in to comment.