X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FWebRequestUpload.php;h=916a10c9f0777e71f9b34f583da1a833bae944e2;hp=0881a16fca502daaa19350406c21ad406cb01b86;hb=90232b6f36ee5a1473f2e865cc7a72d0014db4c7;hpb=77a8bbd406de8194432bbc92ce0b781ba44b43bc diff --git a/includes/WebRequestUpload.php b/includes/WebRequestUpload.php index 0881a16fca..916a10c9f0 100644 --- a/includes/WebRequestUpload.php +++ b/includes/WebRequestUpload.php @@ -102,7 +102,7 @@ class WebRequestUpload { /** * Return the upload error. See link for explanation - * http://www.php.net/manual/en/features.file-upload.errors.php + * https://secure.php.net/manual/en/features.file-upload.errors.php * * @return int One of the UPLOAD_ constants, 0 if non-existent */ @@ -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