Skip to content

Commit

Permalink
fix: DDOS security hotspot
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaDel03 committed Dec 18, 2024
1 parent 495a880 commit db5497c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ private ValidationException buildValidationException() {


public void isValidLocality(String input) {
String regex = "^[a-zA-Z0-9]+[^\\^]*\\^\\^\\^\\^\\^\\&[^&]*\\&ISO\\^\\^\\^\\^[^\\^&]*$";
String regex = "[a-zA-Z0-9]+[^\\^\\\\]*\\\\\\^\\^\\^\\^\\^\\&[^\\&]*\\&ISO\\\\\\^\\^\\^\\^\\[^\\^&]*$";
boolean isValid = Pattern.matches(regex, input);
if (!isValid) {
throw buildValidationException();
Expand Down

0 comments on commit db5497c

Please sign in to comment.