Skip to content

Commit

Permalink
fixed: Log Injection CWE-117
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanmugavel committed Sep 22, 2023
1 parent 2557747 commit ce573cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public String toString() {
String cleanInformation = information.replaceAll("\r\n|\r|\n", " ");
List<String> cleanListOfAffectedItems = new ArrayList<>();
for (String AffectedItems : listOfAffectedItems) {
AffectedItems.replaceAll("\r\n|\r|\n", " ");
cleanListOfAffectedItems.add(AffectedItems);
String cleanAffectedItem = AffectedItems.replaceAll("\r\n|\r|\n", " ");
cleanListOfAffectedItems.add(cleanAffectedItem);
}
return "EDCNotificationContent{" +
"information='" + cleanInformation + '\'' +
Expand Down

0 comments on commit ce573cc

Please sign in to comment.