mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-14 08:39:31 +02:00
Replace getenv("TEMP") by RDTempFile() in RDFormPost::RDFormPost
This commit is contained in:
parent
135e200331
commit
dd2fb90856
@ -71,12 +71,7 @@ RDFormPost::RDFormPost(RDFormPost::Encoding encoding,unsigned maxsize,
|
||||
//
|
||||
// Initialize Temp Directory Path
|
||||
//
|
||||
if(getenv("TMPDIR")!=NULL) {
|
||||
strcpy(tempdir,getenv("TMPDIR"));
|
||||
}
|
||||
else {
|
||||
strcpy(tempdir,"/tmp");
|
||||
}
|
||||
strcpy(tempdir,RDTempDir());
|
||||
strcat(tempdir,"/rivendellXXXXXX");
|
||||
post_tempdir=mkdtemp(tempdir);
|
||||
if(post_tempdir.isNull()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user