mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Address some CodeQL security concerns (#35572)
Although there is no real security problem
This commit is contained in:
		@@ -45,7 +45,7 @@ func GetHook(repoPath, name string) (*Hook, error) {
 | 
			
		||||
	}
 | 
			
		||||
	h := &Hook{
 | 
			
		||||
		name: name,
 | 
			
		||||
		path: filepath.Join(repoPath, "hooks", name+".d", name),
 | 
			
		||||
		path: filepath.Join(repoPath, filepath.Join("hooks", name+".d", name)),
 | 
			
		||||
	}
 | 
			
		||||
	isFile, err := util.IsFile(h.path)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user