projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Display of newlines in memo show as html
[fa-stable.git]
/
admin
/
attachments.php
diff --git
a/admin/attachments.php
b/admin/attachments.php
index f600e3017fd5c39bde3556814785a8b226e39a92..e92276ed87fd2934596504ff9147e178394a4542 100644
(file)
--- a/
admin/attachments.php
+++ b/
admin/attachments.php
@@
-119,7
+119,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);
@@
-169,7
+169,7
@@
function viewing_controls()
start_row();
systypes_list_cells(_("Type:"), 'filterType', null, true);
if (list_updated('filterType'))
start_row();
systypes_list_cells(_("Type:"), 'filterType', null, true);
if (list_updated('filterType'))
- $selected_id = -1;
;
+ $selected_id = -1;
end_row();
end_table(1);
end_row();
end_table(1);