mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-19 16:14:39 +00:00
fix (shared): fix bug that wouldn't let the user create shared link when the path params is set
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user