mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
use /tmp for tempnam()
This commit is contained in:
parent
46dc4ea6e3
commit
20f28bb7df
|
@ -256,7 +256,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('', '');
|
$fullfile = tempnam('/tmp', '');
|
||||||
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])) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user