From: umherirrender Date: Mon, 28 Dec 2015 21:18:34 +0000 (+0100) Subject: Fix CONTENT-LENGTH header in WebRequestUpload X-Git-Tag: 1.31.0-rc.0~8416^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=b90762980db05b82848a8e917a862906bd0525ed;p=lhc%2Fweb%2Fwiklou.git Fix CONTENT-LENGTH header in WebRequestUpload Bug: T118673 Change-Id: I30263f552efe3fea9471841c0a535123c119efe1 --- diff --git a/includes/WebRequestUpload.php b/includes/WebRequestUpload.php index c99b0e3256..0881a16fca 100644 --- a/includes/WebRequestUpload.php +++ b/includes/WebRequestUpload.php @@ -126,7 +126,7 @@ class WebRequestUpload { return true; } - $contentLength = $this->request->getHeader( 'CONTENT_LENGTH' ); + $contentLength = $this->request->getHeader( 'CONTENT-LENGTH' ); $maxPostSize = wfShorthandToInteger( ini_get( 'post_max_size' ) ?: ini_get( 'hhvm.server.max_post_size' ), 0