This commit is contained in:
Liang Ding 2014-09-02 17:38:08 +08:00
parent 2cfab34370
commit bc87da0979
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ func GetFile(w http.ResponseWriter, r *http.Request) {
data["mode"] = "img"
path2 := strings.Replace(path, "\\", "/", -1)
idx = strings.Index(path2, "/data/user_repos")
idx = strings.Index(path2, "/data/user_workspaces")
data["path"] = path2[idx:]
return