mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Merge branch '6.1.x'
This commit is contained in:
+2
-1
@@ -119,7 +119,8 @@ public class StandardMultipartHttpServletRequest extends AbstractMultipartHttpSe
|
||||
String msg = cause.getMessage();
|
||||
if (msg != null) {
|
||||
msg = msg.toLowerCase();
|
||||
if (msg.contains("exceed") && (msg.contains("size") || msg.contains("length"))) {
|
||||
if ((msg.contains("exceed") && (msg.contains("size") || msg.contains("length"))) ||
|
||||
(msg.contains("request") && (msg.contains("big") || msg.contains("large")))) {
|
||||
throw new MaxUploadSizeExceededException(-1, ex);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user