mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-26 17:28:45 +03:00
Backport #16794 There is a missing return in handleSettingRemoteAddrError which means that the error page for repo settings is duplicately rendered. Fix #16771 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
@ -742,6 +742,7 @@ func handleSettingRemoteAddrError(ctx *context.Context, err error, form *forms.R
|
|||||||
default:
|
default:
|
||||||
ctx.ServerError("Unknown error", err)
|
ctx.ServerError("Unknown error", err)
|
||||||
}
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
ctx.RenderWithErr(ctx.Tr("repo.mirror_address_url_invalid"), tplSettingsOptions, form)
|
ctx.RenderWithErr(ctx.Tr("repo.mirror_address_url_invalid"), tplSettingsOptions, form)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user