projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved entropy for report file urls.
[fa-stable.git]
/
admin
/
attachments.php
diff --git
a/admin/attachments.php
b/admin/attachments.php
index 2f41d80c14cc15cef973f5dedb2e4b3b0b1232e9..639fbd9fdb985eae6443d8cd84ba5a4b9fb716a8 100644
(file)
--- a/
admin/attachments.php
+++ b/
admin/attachments.php
@@
-116,7
+116,7
@@
if ($Mode == 'ADD_ITEM' || $Mode == 'UPDATE_ITEM')
unlink($dir."/".$unique_name);
}
else
unlink($dir."/".$unique_name);
}
else
- $unique_name =
uniqid(''
);
+ $unique_name =
random_id(
);
//save the file
move_uploaded_file($tmpname, $dir."/".$unique_name);
//save the file
move_uploaded_file($tmpname, $dir."/".$unique_name);