Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
glorrian committed Dec 10, 2024
1 parent 1c8446e commit f9cef41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public interface FormConfiguration {
/**
* @return true if the semicolon handle as a normal character, false otherwise.
*/
boolean isSemicolonIsNormalChar();
default boolean isSemicolonIsNormalChar() {
return false;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ final class DefaultFormUrlEncodedDecoder implements FormUrlEncodedDecoder {
@NonNull
public Map<String, Object> decode(@NonNull String formUrlEncodedString,
@NonNull Charset charset) {
QueryStringDecoder decoder = new QueryStringDecoder(formUrlEncodedString, charset, false, formConfiguration.getMaxDecodedKeyValueParameters());
QueryStringDecoder decoder = new QueryStringDecoder(formUrlEncodedString, charset, false,
formConfiguration.getMaxDecodedKeyValueParameters(),
formConfiguration.isSemicolonIsNormalChar());
return flatten(decoder.parameters());
}
}

0 comments on commit f9cef41

Please sign in to comment.