|
@@ -107,7 +107,7 @@ func (u *User) VirtualPathToRealPath(vpath string) (string, error) {
|
|
|
|
|
|
//A bit hacky to make sure subpath contains no traversal
|
|
//A bit hacky to make sure subpath contains no traversal
|
|
//Will migrate this to File System Vpath Resolver in the next large update
|
|
//Will migrate this to File System Vpath Resolver in the next large update
|
|
- subpath = strings.ReplaceAll(subpath, "..", "")
|
|
|
|
|
|
+ subpath = strings.ReplaceAll(subpath, "../", "")
|
|
|
|
|
|
//Handle general cases
|
|
//Handle general cases
|
|
if storage.Hierarchy == "user" {
|
|
if storage.Hierarchy == "user" {
|