diff options
author | zeripath <art27@cantab.net> | 2021-12-23 16:27:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-23 16:27:33 +0000 |
commit | a5df7ba6bf57c764b1c5e4c67dbbdf5b115765c9 (patch) | |
tree | 4cf3be8c68ed7625e663e039a596b577769ea4b8 /docs/content/doc/developers/migrations.en-us.md | |
parent | ffc08c1914fbe6a5a5ebe9c8571b790ac6024d71 (diff) | |
download | gitea-a5df7ba6bf57c764b1c5e4c67dbbdf5b115765c9.tar.gz gitea-a5df7ba6bf57c764b1c5e4c67dbbdf5b115765c9.zip |
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>
Diffstat (limited to 'docs/content/doc/developers/migrations.en-us.md')
0 files changed, 0 insertions, 0 deletions