Skip to content

Commit

Permalink
SmallRye GraphQL: added \r to PATTERN_NEWLINE_OR_TAB
Browse files Browse the repository at this point in the history
  • Loading branch information
mskacelik committed Jul 4, 2024
1 parent 0c20277 commit 36c1686
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ private String readQueryParameter(RoutingContext ctx, String parameterName) {
return null;
}

private static final Pattern PATTERN_NEWLINE_OR_TAB = Pattern.compile("\\n|\\t");
private static final Pattern PATTERN_NEWLINE_OR_TAB = Pattern.compile("\\n|\\t|\\r");

/**
* Strip away unescaped tabs and line breaks from the incoming JSON document so that it can be
Expand Down

0 comments on commit 36c1686

Please sign in to comment.