1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 10:00:50 +00:00

Evaluate symlinks before comparing path.

This commit is contained in:
Philip Nelson 2013-08-11 21:38:57 -07:00
parent f321e15db8
commit 61ed8f285b

2
new.go
View File

@ -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