1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

fix future issues like #1607

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-27 07:23:56 +03:00
parent 9c56ed6261
commit 39e3911d41
4 changed files with 44 additions and 13 deletions

View File

@@ -1354,7 +1354,7 @@ func getCaller() (string, int) {
if relFile, err := filepath.Rel(wd, file); err == nil {
if !strings.HasPrefix(relFile, "..") {
// Only if it's relative to this path, not parent.
file = "./" + relFile
file = "./" + filepath.ToSlash(relFile)
}
}