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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user