This commit is contained in:
parent
9717da6c25
commit
e2b962e775
|
|
@ -142,6 +142,9 @@ public class LoggerRequestProcessor implements NettyRequestProcessor {
|
|||
|
||||
private boolean checkPathSecurity(String path) {
|
||||
String dsHome = System.getProperty("DOLPHINSCHEDULER_HOME");
|
||||
if (StringUtils.isBlank(dsHome)) {
|
||||
dsHome = System.getProperty("user.dir");
|
||||
}
|
||||
if (!StringUtils.isBlank(path)) {
|
||||
if (path.startsWith(dsHome) && !path.contains("../") && path.endsWith(".log")) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue