From 0a8d6bb0971bfbae457dd740da4797dc5e295c5c Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Mon, 29 Jul 2013 20:03:44 +0000 Subject: [PATCH] Fix tmp link name --- lib/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions.php b/lib/functions.php index 1ad0e52..f1c1d77 100755 --- a/lib/functions.php +++ b/lib/functions.php @@ -389,7 +389,7 @@ jirafeau_upload ($file, $one_time_download, $key, $time, $ip, $crypt, $link_name $password = md5 ($key); /* create link file */ - $link_tmp_name = VAR_LINKS . $md5 . rand (0, 10000) . ' .tmp'; + $link_tmp_name = VAR_LINKS . $md5 . rand (0, 10000) . '.tmp'; $handle = fopen ($link_tmp_name, 'w'); fwrite ($handle, $name . NL. $mime_type . NL. $size . NL. $password . NL. $time . @@ -934,7 +934,7 @@ jirafeau_async_end ($ref, $code, $crypt, $link_name_length) fclose ($handle); /* Create link. */ - $link_tmp_name = VAR_LINKS . $md5 . rand (0, 10000) . ' .tmp'; + $link_tmp_name = VAR_LINKS . $md5 . rand (0, 10000) . '.tmp'; $handle = fopen ($link_tmp_name, 'w'); fwrite ($handle, $a['file_name'] . NL . $a['mime_type'] . NL . $size . NL . -- 2.34.1