mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
use sys_get_temp_dir() instead of '/tmp'
This commit is contained in:
parent
3cee482b1c
commit
53654444f0
|
@ -333,7 +333,7 @@ if($settings->_libraryFolder) {
|
|||
if($clonedoc = $dms->getDocument($_POST["librarydoc"])) {
|
||||
if($content = $clonedoc->getLatestContent()) {
|
||||
$docsource = 'library';
|
||||
$fullfile = tempnam('/tmp', '');
|
||||
$fullfile = tempnam(sys_get_temp_dir(), '');
|
||||
if(SeedDMS_Core_File::copyFile($dms->contentDir . $content->getPath(), $fullfile)) {
|
||||
/* Check if a local file is uploaded as well */
|
||||
if(isset($_FILES["userfile"]['error'][0])) {
|
||||
|
|
|
@ -97,7 +97,7 @@ $(document).ready(function() {
|
|||
$downmgr->addItem($entry->getLatestContent(), $extracols);
|
||||
}
|
||||
}
|
||||
$filename = tempnam('/tmp', '');
|
||||
$filename = tempnam(sys_get_temp_dir(), '');
|
||||
if(isset($_GET['includecontent']) && $_GET['includecontent']) {
|
||||
$downmgr->createArchive($filename);
|
||||
header("Content-Transfer-Encoding: binary");
|
||||
|
|
Loading…
Reference in New Issue
Block a user