From 36c168609cac2614d79b91478563f44cf229d013 Mon Sep 17 00:00:00 2001 From: Marek Skacelik Date: Thu, 4 Jul 2024 13:39:48 +0200 Subject: [PATCH] SmallRye GraphQL: added \r to PATTERN_NEWLINE_OR_TAB --- .../graphql/runtime/SmallRyeGraphQLExecutionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java index d0ffbc1901c95..7d97c18bd090c 100644 --- a/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java +++ b/extensions/smallrye-graphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLExecutionHandler.java @@ -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