use /tmp for tempnam()

This commit is contained in:
Uwe Steinmann 2015-06-08 22:00:27 +02:00
parent 46dc4ea6e3
commit 20f28bb7df

View File

@ -256,7 +256,7 @@ if($settings->_libraryFolder) {
if($clonedoc = $dms->getDocument($_POST["librarydoc"])) {
if($content = $clonedoc->getLatestContent()) {
$docsource = 'library';
$fullfile = tempnam('', '');
$fullfile = tempnam('/tmp', '');
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])) {