Skip to content

Commit

Permalink
Fix ConfigDescriptionsManager misinterpreting a double-quote alone (`…
Browse files Browse the repository at this point in the history
…"`) as a quoted part

(cherry picked from commit a034d9f)
  • Loading branch information
yrodiere authored and gsmet committed Oct 4, 2022
1 parent 165c1ae commit d57a215
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -297,7 +297,7 @@ private String ensureQuoted(String part) {
}

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

@Override
Expand Down

0 comments on commit d57a215

Please sign in to comment.