diff options
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" ) |