Merge branch '3.2.x'

See gh-40616
This commit is contained in:
Phillip Webb
2024-05-03 12:31:33 -07:00
2 changed files with 7 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ final class UriPathEncoder {
static String encode(String path) {
byte[] bytes = path.getBytes(StandardCharsets.UTF_8);
for (byte b : bytes) {
if (isAllowed(b)) {
if (!isAllowed(b)) {
return encode(bytes);
}
}