This commit is contained in:
parent
2cfab34370
commit
bc87da0979
|
@ -62,7 +62,7 @@ func GetFile(w http.ResponseWriter, r *http.Request) {
|
||||||
data["mode"] = "img"
|
data["mode"] = "img"
|
||||||
|
|
||||||
path2 := strings.Replace(path, "\\", "/", -1)
|
path2 := strings.Replace(path, "\\", "/", -1)
|
||||||
idx = strings.Index(path2, "/data/user_repos")
|
idx = strings.Index(path2, "/data/user_workspaces")
|
||||||
data["path"] = path2[idx:]
|
data["path"] = path2[idx:]
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue