From: Timo Tijhof Date: Thu, 25 Feb 2016 21:06:40 +0000 (+0000) Subject: WebRequestUpload: Use canonical header name in getHeader() X-Git-Tag: 1.31.0-rc.0~7770^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=21992779277cf6e5179e04ed7cca1c9866f1492c;p=lhc%2Fweb%2Fwiklou.git WebRequestUpload: Use canonical header name in getHeader() Follows-up I30263f552efe. No need to reflect internal detail of it being in uppercase (which might change). Use the canonical casing instead of improved reability. Also removes the illusion that this might be special (which uppercase strings might make you think). Change-Id: I7cecfdf5991e85c85862465a27a86af7bc8c0763 --- diff --git a/includes/WebRequestUpload.php b/includes/WebRequestUpload.php index 0881a16fca..c741907d3e 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