mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 02:19:07 +01:00
LSsession : fix getTmpFileURL when tmp directory is a symbolic link
This commit is contained in:
parent
041e38e131
commit
6ba8f2732c
1 changed files with 2 additions and 2 deletions
|
@ -2256,8 +2256,8 @@ class LSsession {
|
||||||
**/
|
**/
|
||||||
public static function getTmpFileURL($value) {
|
public static function getTmpFileURL($value) {
|
||||||
$path = self :: getTmpFile($value);
|
$path = self :: getTmpFile($value);
|
||||||
if (substr($path, 0, strlen(LS_ROOT_DIR)) == LS_ROOT_DIR)
|
if ($path && is_file($path))
|
||||||
return substr($path, strlen(LS_ROOT_DIR)+1);
|
return "tmp/".basename($path);
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue