Skip to content

Commit

Permalink
Do not mess up json in multipart uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
dkayiwa committed Nov 14, 2024
1 parent e857645 commit a6c6c0a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public String getParameter(String name) {
return null;
}

return Encode.forHtml(value);
return Encode.forHtmlContent(value);
}

@Override
Expand All @@ -44,7 +44,7 @@ public String[] getParameterValues(String name) {
int count = values.length;
String[] encodedValues = new String[count];
for (int i = 0; i < count; i++) {
encodedValues[i] = Encode.forHtml(values[i]);
encodedValues[i] = Encode.forHtmlContent(values[i]);
}

return encodedValues;
Expand Down

0 comments on commit a6c6c0a

Please sign in to comment.