Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
1 result

files.php

  • Vincent Petry's avatar
    726a202c
    Fixed getLocalFile() condition for x-send-file · 726a202c
    Vincent Petry authored
    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.
    726a202c
    History
    Fixed getLocalFile() condition for x-send-file
    Vincent Petry authored
    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.