stable

Clone or download

Read-only

request #11351 Wrong md5 after downlading a big file through FRS

After downloading a big file through the FRS with a size ≥ 2GB, the md5 of the downloaded file does not correspond to the md5 calculated by the server. This seems related to a misbehaviour of the readfile function in PHP 5.6[1] We also apply this modifiction to other services potentially impacted: * Docman * TV5 attachments * PHPWiki * Binaryfile download (Webdav) [1] https://stackoverflow.com/a/40794528 Change-Id: I473d2f2091427641c7e404e710e5627b8fc97e4e

Modified Files

Name
M plugins/docman/include/view/Docman_View_Download.class.php +8 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php +7 −1 Go to diff View file
M plugins/webdav/include/FS/WebDAVDocmanDocument.class.php +6 −1 Go to diff View file
M src/common/Http/BinaryFileResponse.php +7 −1 Go to diff View file
M src/common/frs/FRSFile.class.php +14 −2 Go to diff View file