diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-11-02 10:06:25 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-11-02 10:06:25 +1300 |
commit | 7e6d014f8f0b4e89c7f4cd97e9ea4856a6771981 (patch) | |
tree | 504a10a14b68e4f571894f47a99f8cc62b3fa1ed /pathod | |
parent | c55e8d8f62b34e45ecdd4f7dd09ed2f0b710c335 (diff) | |
download | mitmproxy-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.py | 2 |
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" ) |