Skip to content

Commit

Permalink
Check the input yaml and the path in ACL (#7475)
Browse files Browse the repository at this point in the history
* check the input yaml and the path.

* only modify the path, no yaml.

* remove useless import
  • Loading branch information
GenerousMan authored Oct 19, 2023
1 parent f0f15b5 commit dbc633d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ public boolean updateGlobalWhiteAddrsConfig(List<String> globalWhiteAddrsList, S
return false;
}

if (!fileName.startsWith(fileHome)) {
if (!file.getAbsolutePath().startsWith(fileHome)) {
log.error("Parameter value " + fileName + " is not in the directory rocketmq.home.dir " + fileHome);
return false;
}
Expand Down

0 comments on commit dbc633d

Please sign in to comment.