We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03f3d7d commit 8da01fdCopy full SHA for 8da01fd
src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php
@@ -18,7 +18,9 @@ class ValidatePostSize
18
*/
19
public function handle($request, Closure $next)
20
{
21
- if ($request->server('CONTENT_LENGTH') > $this->getPostMaxSize()) {
+ $max = $this->getPostMaxSize();
22
+
23
+ if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
24
throw new PostTooLargeException;
25
}
26
0 commit comments