Skip to content

Commit

Permalink
WW-4818 change default Multipart validation regex to comply with RFC1341
Browse files Browse the repository at this point in the history
  • Loading branch information
sdutry committed Jul 25, 2017
1 parent 06c8583 commit 68d52db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class Dispatcher {
*/
public static final String REQUEST_POST_METHOD = "POST";

public static final String MULTIPART_FORM_DATA_REGEX = "^multipart\\/form-data(; boundary=[\\-a-zA-Z0-9]{1,70})?";
public static final String MULTIPART_FORM_DATA_REGEX = "^multipart/form-data(; boundary=[0-9a-zA-Z'()+_,\\-./:=?]{1,70})?";

/**
* Provide a thread local instance.
Expand Down

0 comments on commit 68d52db

Please sign in to comment.