Commit acbe87d6 authored by Dr. Stefan Schimanski's avatar Dr. Stefan Schimanski

importverifier: fix isPathUnder for base == path

parent 7f991a3b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment