mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
* eMail: fix for a problem reported with FreeBSD regarding the generation of random strings for temp-filenames
This commit is contained in:
parent
af5f8208bb
commit
c497f93508
@ -3355,11 +3355,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// as FreeBSD seems to have problems with the generated temp names we append some more random stuff
|
||||||
|
$randomString = chr(rand(65,90)).chr(rand(48,57)).chr(rand(65,90)).chr(rand(48,57)).chr(rand(65,90));
|
||||||
$tmpFileName = $GLOBALS['egw_info']['server']['temp_dir'].
|
$tmpFileName = $GLOBALS['egw_info']['server']['temp_dir'].
|
||||||
SEP.
|
SEP.
|
||||||
$GLOBALS['egw_info']['user']['account_id'].
|
$GLOBALS['egw_info']['user']['account_id'].
|
||||||
trim($IDtoAddToFileName).basename($_formData['file']);
|
trim($IDtoAddToFileName).basename($_formData['file']).'_'.$randomString;
|
||||||
|
|
||||||
if (parse_url($_formData['file'],PHP_URL_SCHEME) == 'vfs')
|
if (parse_url($_formData['file'],PHP_URL_SCHEME) == 'vfs')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user