]> source.dussan.org Git - nextcloud-server.git/commit
Fixed getLocalFile() condition for x-send-file
authorVincent Petry <pvince81@owncloud.com>
Wed, 20 Nov 2013 13:33:59 +0000 (14:33 +0100)
committerVincent Petry <pvince81@owncloud.com>
Wed, 20 Nov 2013 13:33:59 +0000 (14:33 +0100)
commit726a202cdb9471a0bc4c6c27e59469af1e39a32e
treea80f281d2b2bde1cefab973ede198d42888414a0
parent8bc339413ba2221fea9447f91ae093f3f1cf2ab4
Fixed getLocalFile() condition for x-send-file

Until now, addSendfileHeader() was called even when no x-send-file
headers were set. Even though the method itself doesn't do anything,
a call to getLocalFile() was done and would trigger a full download
when using external storage.

Additionally, the storage resolution code is wrong and always
returns the local storage of the root filesystem, which caused the code to
be run anyway.

This commit fixes both issues.
lib/private/files.php