Use path.Join in plugin's webpath property (#610)
* Use path.Join in plugin's webpath property * Update mattermost-plugin/server/plugin.go Co-authored-by: Jesús Espino <jespinog@gmail.com> Co-authored-by: Jesús Espino <jespinog@gmail.com>
This commit is contained in:
parent
67df905a42
commit
fd9be03445
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ package main
|
|||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"path"
|
||||
"sync"
|
||||
|
||||
"github.com/mattermost/focalboard/server/server"
|
||||
|
@ -90,7 +91,7 @@ func (p *Plugin) OnActivate() error {
|
|||
DBTablePrefix: "focalboard_",
|
||||
UseSSL: false,
|
||||
SecureCookie: true,
|
||||
WebPath: *mmconfig.PluginSettings.Directory + "/focalboard/pack",
|
||||
WebPath: path.Join(*mmconfig.PluginSettings.Directory, "focalboard", "pack"),
|
||||
FilesDriver: *mmconfig.FileSettings.DriverName,
|
||||
FilesPath: *mmconfig.FileSettings.Directory,
|
||||
FilesS3Config: filesS3Config,
|
||||
|
|
Loading…
Reference in a new issue