mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 10:44:12 +01:00 
			
		
		
		
	Backport #31859
This commit is contained in:
		
							parent
							
								
									d9c65c9a52
								
							
						
					
					
						commit
						e060ae88e5
					
				@ -248,7 +248,8 @@ func SettingsPost(ctx *context.Context) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		remoteAddress, err := util.SanitizeURL(form.MirrorAddress)
 | 
							remoteAddress, err := util.SanitizeURL(form.MirrorAddress)
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			ctx.ServerError("SanitizeURL", err)
 | 
								ctx.Data["Err_MirrorAddress"] = true
 | 
				
			||||||
 | 
								handleSettingRemoteAddrError(ctx, err, form)
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		pullMirror.RemoteAddress = remoteAddress
 | 
							pullMirror.RemoteAddress = remoteAddress
 | 
				
			||||||
@ -409,7 +410,8 @@ func SettingsPost(ctx *context.Context) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		remoteAddress, err := util.SanitizeURL(form.PushMirrorAddress)
 | 
							remoteAddress, err := util.SanitizeURL(form.PushMirrorAddress)
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			ctx.ServerError("SanitizeURL", err)
 | 
								ctx.Data["Err_PushMirrorAddress"] = true
 | 
				
			||||||
 | 
								handleSettingRemoteAddrError(ctx, err, form)
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user