Revision 945859e0 lib/backend.py
b/lib/backend.py | ||
---|---|---|
2878 | 2878 |
real_filename = os.path.realpath(filename) |
2879 | 2879 |
directory = os.path.dirname(real_filename) |
2880 | 2880 |
|
2881 |
if utils.IsBelowDir(constants.EXPORT_DIR, real_filename): |
|
2881 |
if not utils.IsBelowDir(constants.EXPORT_DIR, real_filename):
|
|
2882 | 2882 |
_Fail("File '%s' is not under exports directory '%s': %s", |
2883 | 2883 |
filename, constants.EXPORT_DIR, real_filename) |
2884 | 2884 |
|
Also available in: Unified diff