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:
Miguel de la Cruz 2021-06-21 12:08:33 +02:00 committed by GitHub
parent 67df905a42
commit fd9be03445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,