X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fattachments.php;h=421c040662f5fa309a25f51a4009149c72c58ab1;hb=c57a65eca46110b7e4a865dc2b007c1fd75838c3;hp=f600e3017fd5c39bde3556814785a8b226e39a92;hpb=e3f484ae204332e27562507b0361e024fccf4c42;p=fa-stable.git diff --git a/admin/attachments.php b/admin/attachments.php index f600e301..421c0406 100644 --- a/admin/attachments.php +++ b/admin/attachments.php @@ -119,7 +119,7 @@ if ($Mode == 'ADD_ITEM' || $Mode == 'UPDATE_ITEM') unlink($dir."/".$unique_name); } else - $unique_name = uniqid(''); + $unique_name = random_id(); //save the file move_uploaded_file($tmpname, $dir."/".$unique_name);