mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Merge pull request #17 from LefsFlarey/issue/3666
Fixed 404 caused by unexpected question mark
This commit is contained in:
		@@ -264,7 +264,7 @@ func editFilePost(ctx *context.Context, form auth.EditRepoFileForm, isNewFile bo
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	ctx.Redirect(ctx.Repo.RepoLink + "/src/" + branchName + "/" + form.TreePath)
 | 
			
		||||
	ctx.Redirect(ctx.Repo.RepoLink + "/src/" + branchName + "/" + strings.NewReplacer("%", "%25", "#", "%23", " ", "%20", "?", "%3F").Replace(form.TreePath))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func EditFilePost(ctx *context.Context, form auth.EditRepoFileForm) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user