0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 08:45:04 +01:00
gitea/modules/uri
zeripath a5df7ba6bf
Prevent NPE if gitea uploader fails to open url (#18080)
If http.Get() returns an error return nil and err before attempting to
use the broken file.

Thanks to walker xiong for spotting this bug.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-23 16:27:33 +00:00
..
uri.go Prevent NPE if gitea uploader fails to open url (#18080) 2021-12-23 16:27:33 +00:00
uri_test.go