mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Backport #30885 Fix #30883 Fix #29591 Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
		@@ -42,7 +42,7 @@ func renderCodeBlock(ctx *RenderContext, node *html.Node) (urlPosStart, urlPosSt
 | 
			
		||||
		CommitID:  node.Data[m[6]:m[7]],
 | 
			
		||||
		FilePath:  node.Data[m[8]:m[9]],
 | 
			
		||||
	}
 | 
			
		||||
	if !httplib.IsCurrentGiteaSiteURL(opts.FullURL) {
 | 
			
		||||
	if !httplib.IsCurrentGiteaSiteURL(ctx.Ctx, opts.FullURL) {
 | 
			
		||||
		return 0, 0, "", nil
 | 
			
		||||
	}
 | 
			
		||||
	u, err := url.Parse(opts.FilePath)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user