From 7e6d014f8f0b4e89c7f4cd97e9ea4856a6771981 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 2 Nov 2016 10:06:25 +1300 Subject: tests: pathod/tutils.py -> pathod/tservers.py And remove all aliases for mitmproxy.test.tutils --- pathod/language/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pathod') diff --git a/pathod/language/base.py b/pathod/language/base.py index 44a888c0..3a810ef0 100644 --- a/pathod/language/base.py +++ b/pathod/language/base.py @@ -216,7 +216,7 @@ class TokValueFile(Token): os.path.abspath(os.path.join(settings.staticdir, s)) ) uf = settings.unconstrained_file_access - if not uf and not s.startswith(settings.staticdir): + if not uf and not s.startswith(os.path.normpath(settings.staticdir)): raise exceptions.FileAccessDenied( "File access outside of configured directory" ) -- cgit v1.2.3