1
1
Fork 0
mirror of https://tildegit.org/solderpunk/molly-brown synced 2024-05-09 20:16:02 +02:00

Quick hacky fix to tilde path transformation.

This commit is contained in:
Solderpunk 2020-06-08 23:03:19 +02:00
parent 3e5e4353e6
commit 8d2309f889

View File

@ -202,6 +202,8 @@ func resolvePath(path string, config Config) (string, os.FileInfo, error) {
username := bits[1][1:]
new_prefix := filepath.Join(config.DocBase, config.HomeDocBase, username)
path = strings.Replace(path, bits[1], new_prefix, 1)
// TODO: Fix this properly
path = strings.Replace(path, "//", "/", -1)
} else {
path = filepath.Join(config.DocBase, path)
}