WW-4818 change default Multipart validation regex to comply with RFC1341

This commit is contained in:
Stefaan Dutry
2017-07-25 13:05:07 +02:00
parent 06c8583867
commit 68d52dbe42
@@ -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.