Merge branch 'pr/4046' into maintenance

This commit is contained in:
Gina Häußge committed 2021-03-15 14:39:14 +01:00
commit 9c33571dc9
1 file changed
+3 -7
+3 -7
View File
@@ -766,13 +766,9 @@ class Server(object):
)
}
valid_log = (
lambda path: not octoprint.util.is_hidden_path(path)
and path.endswith(".log")
and os.path.realpath(os.path.abspath(path)).startswith(
settings().getBaseFolder("logs")
)
)
valid_log = lambda path: not octoprint.util.is_hidden_path(
path
) and path.endswith(".log")
log_path_validator = {
"path_validation": util.tornado.path_validation_factory(
valid_log,