We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1426de commit d158472Copy full SHA for d158472
routers/web/repo/setting/setting.go
@@ -240,7 +240,8 @@ func SettingsPost(ctx *context.Context) {
240
241
remoteAddress, err := util.SanitizeURL(form.MirrorAddress)
242
if err != nil {
243
- ctx.ServerError("SanitizeURL", err)
+ ctx.Data["Err_MirrorAddress"] = true
244
+ handleSettingRemoteAddrError(ctx, err, form)
245
return
246
}
247
pullMirror.RemoteAddress = remoteAddress
@@ -401,7 +402,8 @@ func SettingsPost(ctx *context.Context) {
401
402
403
remoteAddress, err := util.SanitizeURL(form.PushMirrorAddress)
404
405
+ ctx.Data["Err_PushMirrorAddress"] = true
406
407
408
409
0 commit comments