mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 12:41:10 +01:00
?download in WebDAV url did not trigger content-dispostion attachment header
This commit is contained in:
parent
f01ab4e665
commit
5a42714aee
@ -1630,7 +1630,7 @@ egw_LAB.wait(function() {
|
||||
*/
|
||||
public static function content_disposition_header($fn,$forceDownload=true)
|
||||
{
|
||||
if ($forceDownload===true)
|
||||
if ($forceDownload)
|
||||
{
|
||||
$attachment = ' attachment;';
|
||||
}
|
||||
|
@ -627,7 +627,7 @@ class vfs_webdav_server extends HTTP_WebDAV_Server_Filesystem
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'GET' && ($this->force_download = strpos($_SERVER['REQUEST_URI'],'?download')))
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'GET' && ($this->force_download = strpos($_SERVER['REQUEST_URI'],'?download') !== false))
|
||||
{
|
||||
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'],0,$this->force_download);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user