Fortify Path Manipulation error
问题 Fority Scan reported "Path Manipulation" security issues in following snippet String filePath = getFilePath(fileLocation, fileName); final File file = new File(filePath); LOGGER.info("Saving report at : " + filePath); BufferedWriter fileWriter = new BufferedWriter(new FileWriter(file)); fileWriter.write(fileContent); so i am checking for blacklisted characters in fileLocation and throwing exception, still the Fortify is throwing the exception. try { String filePath = getFilePath(fileLocation,