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