fix (shared): fix bug that wouldn't let the user create shared link when the path params is set

This commit is contained in:
Mickael KERJEAN
2019-02-25 18:44:51 +11:00
parent c9c3a9f5e2
commit 2a7d1131b9
+3 -1
View File
@@ -26,7 +26,9 @@ func NewBackend(ctx *App, conn map[string]string) (IBackend, error) {
if val == nil {
val = "/"
}
if val != conn["path"] {
if configPath, ok := val.(string); ok == false {
continue
} else if strings.HasPrefix(conn["path"], configPath) == false {
continue
}
}