mirror of
				https://github.com/beego/bee.git
				synced 2025-11-04 14:33:24 +00:00 
			
		
		
		
	Evaluate symlinks before comparing path.
This commit is contained in:
		
							
								
								
									
										2
									
								
								new.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								new.go
									
									
									
									
									
								
							@@ -56,7 +56,7 @@ func createApp(cmd *Command, args []string) {
 | 
			
		||||
 | 
			
		||||
	wgopath := path.SplitList(gopath)
 | 
			
		||||
	for _, wg := range wgopath {
 | 
			
		||||
		wg = path.Join(wg, "src")
 | 
			
		||||
		wg, _ = path.EvalSymlinks(path.Join(wg, "src"))
 | 
			
		||||
 | 
			
		||||
		if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) {
 | 
			
		||||
			haspath = true
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user