mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-28 03:31:19 +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($clonedoc = $dms->getDocument($_POST["librarydoc"])) {
|
||||||
if($content = $clonedoc->getLatestContent()) {
|
if($content = $clonedoc->getLatestContent()) {
|
||||||
$docsource = 'library';
|
$docsource = 'library';
|
||||||
$fullfile = tempnam('/tmp', '');
|
$fullfile = tempnam(sys_get_temp_dir(), '');
|
||||||
if(SeedDMS_Core_File::copyFile($dms->contentDir . $content->getPath(), $fullfile)) {
|
if(SeedDMS_Core_File::copyFile($dms->contentDir . $content->getPath(), $fullfile)) {
|
||||||
/* Check if a local file is uploaded as well */
|
/* Check if a local file is uploaded as well */
|
||||||
if(isset($_FILES["userfile"]['error'][0])) {
|
if(isset($_FILES["userfile"]['error'][0])) {
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ $(document).ready(function() {
|
||||||
$downmgr->addItem($entry->getLatestContent(), $extracols);
|
$downmgr->addItem($entry->getLatestContent(), $extracols);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$filename = tempnam('/tmp', '');
|
$filename = tempnam(sys_get_temp_dir(), '');
|
||||||
if(isset($_GET['includecontent']) && $_GET['includecontent']) {
|
if(isset($_GET['includecontent']) && $_GET['includecontent']) {
|
||||||
$downmgr->createArchive($filename);
|
$downmgr->createArchive($filename);
|
||||||
header("Content-Transfer-Encoding: binary");
|
header("Content-Transfer-Encoding: binary");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user