aboutsummaryrefslogtreecommitdiffstats
path: root/pathod
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-11-02 10:06:25 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-11-02 10:06:25 +1300
commit7e6d014f8f0b4e89c7f4cd97e9ea4856a6771981 (patch)
tree504a10a14b68e4f571894f47a99f8cc62b3fa1ed /pathod
parentc55e8d8f62b34e45ecdd4f7dd09ed2f0b710c335 (diff)
downloadmitmproxy-7e6d014f8f0b4e89c7f4cd97e9ea4856a6771981.tar.gz
mitmproxy-7e6d014f8f0b4e89c7f4cd97e9ea4856a6771981.tar.bz2
mitmproxy-7e6d014f8f0b4e89c7f4cd97e9ea4856a6771981.zip
tests: pathod/tutils.py -> pathod/tservers.py
And remove all aliases for mitmproxy.test.tutils
Diffstat (limited to 'pathod')
-rw-r--r--pathod/language/base.py2
1 files changed, 1 insertions, 1 deletions
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"
)