Bound remote asset content verification
This commit is contained in:
@@ -89,6 +89,8 @@ Attachment downloads and redirects carry the Gitea authorization token only
|
||||
when their scheme, host, and port match the configured service. Cross-origin
|
||||
content is downloaded without that token and verified by its digest. Downloads
|
||||
follow at most ten redirects; an additional redirect is unverifiable.
|
||||
Comparison reads no more than the declared local size plus one byte; shorter
|
||||
or longer content conflicts, regardless of the server's reported size.
|
||||
|
||||
Shared delivery uploads only after inspection finds no conflicts or
|
||||
unverifiable assets. It uploads missing binaries in filename order and then the
|
||||
|
||||
Reference in New Issue
Block a user