parital fix of #2: enforce path separator '/'

This commit is contained in:
Lutz Horn 2020-09-09 07:37:55 +02:00
parent cd878c2918
commit f0fe396f18
1 changed files with 1 additions and 0 deletions

View File

@ -493,6 +493,7 @@ func relativeBasePath(p string) string {
if p != "" {
r += "../"
}
p = filepath.ToSlash(p)
for i := strings.Count(p, "/"); i > 0; i-- {
r += "../"
}