mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +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) {
|
||||
$path = self :: getTmpFile($value);
|
||||
if (substr($path, 0, strlen(LS_ROOT_DIR)) == LS_ROOT_DIR)
|
||||
return substr($path, strlen(LS_ROOT_DIR)+1);
|
||||
if ($path && is_file($path))
|
||||
return "tmp/".basename($path);
|
||||
return False;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue