Merge branch 'pr/4046' into maintenance
This commit is contained in:
commit
9c33571dc9
1 file changed
+3
-7
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user