]> source.dussan.org Git - nextcloud-server.git/commit
Return whole file if range request cannot be granted due to encryption
authorVincent Petry <pvince81@owncloud.com>
Thu, 14 Aug 2014 13:18:49 +0000 (15:18 +0200)
committerVincent Petry <pvince81@owncloud.com>
Wed, 20 Aug 2014 19:56:09 +0000 (21:56 +0200)
commitc6e87acb96dc51ff06be6e2471adb6991d4136d5
treef4a6a7121a3a0e57e9819e7bac9810668c8a4537
parent899035bfd3f047b374f2c50356f46794767a553f
Return whole file if range request cannot be granted due to encryption

Whenenver range headers are set and encryption is enabled, it is not
possible to automatically fseek() to the proper position.

To avoid returning corrupt/invalid data or causing a decryption error,
the range headers are stripped so that the SabreDAV code in httpGet()
returns the whole file.

Backport of cc8c1d8e0776bda7f4c7c28e11984144a4861df3 from master
lib/private/connector/sabre/server.php