Skip to content

Commit d57a215

Browse files
yrodieregsmet
authored andcommitted
Fix ConfigDescriptionsManager misinterpreting a double-quote alone (") as a quoted part
(cherry picked from commit a034d9f)
1 parent 165c1ae commit d57a215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/ConfigDescriptionsManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ private String ensureQuoted(String part) {
297297
}
298298

299299
private boolean isQuoted(String part) {
300-
return part.charAt(0) == '\"' && part.charAt(part.length() - 1) == '\"';
300+
return part.length() >= 2 && part.charAt(0) == '\"' && part.charAt(part.length() - 1) == '\"';
301301
}
302302

303303
@Override

0 commit comments

Comments
 (0)