Merge branch 'bootstrap' of https://github.com/PrestaShop/PrestaShop into bootstrap

This commit is contained in:
Jerome Nadaud committed 2013-11-25 16:05:31 +01:00
commit 0061801bed
1 file changed
+9 -5
+9 -5
View File
@@ -248,9 +248,13 @@ class QqUploadedFileXhr
public function getSize() public function getSize()
{ {
if (isset($_SERVER['CONTENT_LENGTH'])) if (isset($_SERVER['CONTENT_LENGTH']) || isset($_SERVER['HTTP_CONTENT_LENGTH']))
return (int)$_SERVER['CONTENT_LENGTH']; {
else if (isset($_SERVER['HTTP_CONTENT_LENGTH']))
throw new Exception('Getting content length is not supported.'); return (int)$_SERVER['HTTP_CONTENT_LENGTH'];
else
return (int)$_SERVER['CONTENT_LENGTH'];
}
return false;
} }
} }