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 d9c65c9 commit e060ae8Copy full SHA for e060ae8
routers/web/repo/setting/setting.go
@@ -248,7 +248,8 @@ func SettingsPost(ctx *context.Context) {
248
249
remoteAddress, err := util.SanitizeURL(form.MirrorAddress)
250
if err != nil {
251
- ctx.ServerError("SanitizeURL", err)
+ ctx.Data["Err_MirrorAddress"] = true
252
+ handleSettingRemoteAddrError(ctx, err, form)
253
return
254
}
255
pullMirror.RemoteAddress = remoteAddress
@@ -409,7 +410,8 @@ func SettingsPost(ctx *context.Context) {
409
410
411
remoteAddress, err := util.SanitizeURL(form.PushMirrorAddress)
412
413
+ ctx.Data["Err_PushMirrorAddress"] = true
414
415
416
417
0 commit comments