2
I have path Manipulation problem in addAttachment.
ByteArrayOutputStream baos = new ByteArrayOutputStream();
hssWorkBook.write(baos);
byte[] bytes = baos.toByteArray();
DataSource ds = new ByteArrayDataSource(bytes, "application/excel");
helper.addAttachment("XYZ information - "+XYZ+".xls", ds);
helper.setText(text.toString(), true);
이미 작성된 통합 문서에서 xls를 첨부 파일로 추가하려하지만 Fortify가 addAttachment에서 경로 조작 오류를 제공하고 있습니다. 어떻게이 문제를 해결할 수 있습니까?fortify가 준 경로 조작 오류를 수정하는 방법은 무엇입니까?