mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
fixed 解决安全问题访问附件,id改为uuid
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
json.id @attachment.id
|
||||
json.id @attachment.uuid
|
||||
json.title @attachment.title
|
||||
json.filesize number_to_human_size(@attachment.filesize)
|
||||
json.is_pdf @attachment.is_pdf?
|
||||
|
||||
Reference in New Issue
Block a user