Skip to content

Commit

Permalink
Windows support for resource serving.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Coble authored and ralphbean committed Mar 13, 2012
1 parent 6c06384 commit 0b93917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tw2/core/resources.py
Expand Up @@ -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()
Expand Down

0 comments on commit 0b93917

Please sign in to comment.