Fixed: Path Traversal in webtools/control/FetchLogs and ViewFile
Fixes a typo which was crashing webtools/control/LogView
@@ -42,7 +42,7 @@ for (int i = 0; i < listLogFiles.length; i++) {
}
context.listLogFileNames = listLogFileNames.sort()
-if (parameters.logFileName && logFileName.contains(parameters.logFileName)) {
+if (parameters.logFileName && listLogFileNames.contains(parameters.logFileName)) {
List logLines = []
try {
File logFile = FileUtil.getFile(ofbizLogDir.concat(parameters.logFileName))
