Merge branch '5.3.x'
This commit is contained in:
@@ -113,8 +113,11 @@ public class StandardMultipartHttpServletRequest extends AbstractMultipartHttpSe
|
||||
|
||||
protected void handleParseFailure(Throwable ex) {
|
||||
String msg = ex.getMessage();
|
||||
if (msg != null && msg.contains("size") && msg.contains("exceed")) {
|
||||
throw new MaxUploadSizeExceededException(-1, ex);
|
||||
if (msg != null) {
|
||||
msg = msg.toLowerCase();
|
||||
if (msg.contains("size") && msg.contains("exceed")) {
|
||||
throw new MaxUploadSizeExceededException(-1, ex);
|
||||
}
|
||||
}
|
||||
throw new MultipartException("Failed to parse multipart servlet request", ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user