Skip to content

Commit

Permalink
NMS-16983 : Fixed issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
MusaidAli committed Dec 17, 2024
1 parent fdd7bb2 commit 2e4110f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public String getFileName(final HttpServletRequest request) {
final String outputParameter = request.getParameter("output");
String fileName = null;
if (outputParameter != null && !outputParameter.matches("^[\\s]*$")) {
fileName = new File(outputParameter).getName().replaceAll("[^[:alnum:]\\.]", "");
fileName = new File(outputParameter).getName().replaceAll("[^\\w\\.]", "");
} else {
fileName = "opennms-system-report." + m_formatter.getExtension();
}
Expand Down

0 comments on commit 2e4110f

Please sign in to comment.