importverifier: fix isPathUnder for base == path

This commit is contained in:
Dr. Stefan Schimanski 2017-10-10 14:22:19 +02:00
parent 7f991a3b53
commit acbe87d65f

View File

@ -110,7 +110,7 @@ func isPathUnder(base, path string) (bool, error) {
// if path is below base, the relative path
// from base to path will not start with `../`
return !strings.HasPrefix(relPath, "."), nil
return !strings.HasPrefix(relPath, ".."), nil
}
// forbiddenImportsFor determines all of the forbidden