Merged in bugfix/HOR-3845-B (pull request #6131)

HOR-3845

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
Dante Loayza
2017-10-20 21:55:29 +00:00
committed by Paula Quispe
2 changed files with 3 additions and 3 deletions

View File

@@ -1250,9 +1250,9 @@ class G
$aAux = explode('/', $filename);
$downloadFileName = $aAux[count($aAux) - 1];
}
header('Content-Disposition: attachment; filename="' . static::inflect($downloadFileName) . '"');
header('Content-Disposition: attachment; filename="' . $downloadFileName . '"');
} else {
header('Content-Disposition: inline; filename="' . static::inflect($downloadFileName) . '"');
header('Content-Disposition: inline; filename="' . $downloadFileName . '"');
}
header('Content-Type: ' . $contentType);

View File

@@ -159,7 +159,7 @@ if (!$sw_file_exists) {
}
/*----------------------------------********---------------------------------*/
if (!$downloadStatus) {
G::streamFile( $realPath, $download, $nameFile); //download
G::streamFile( $realPath, $download, G::inflect($nameFile)); //download
}
}
}