Fixed config pass filter in debug response

This commit is contained in:
Rsl1122 2017-11-13 16:28:40 +02:00
parent 5162f70e0c
commit 28865e24ff

View File

@ -89,7 +89,7 @@ public class DebugPageResponse extends ErrorResponse {
if (configFile.exists()) {
content.append("<pre>### config.yml<br>&#96;&#96;&#96;<br>");
FileUtil.lines(configFile, Charset.forName("UTF-8"))
.stream().filter(line -> line.toLowerCase().contains("pass"))
.stream().filter(line -> !line.toLowerCase().contains("pass"))
.forEach(line -> content.append(line).append("<br>"));
content.append("&#96;&#96;&#96;</pre>");
}