MM-14052: Fix subpath rewrite again (#10252)
* actually log an error when subpath rewrite fails * update subpath rewrite to accommodate dropping unsafe-eval
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
93244fdaa1
Коммит
aca8914e35
@@ -23,7 +23,9 @@ var robotsTxt = []byte("User-agent: *\nDisallow: /\n")
|
||||
|
||||
func (w *Web) InitStatic() {
|
||||
if *w.ConfigService.Config().ServiceSettings.WebserverMode != "disabled" {
|
||||
utils.UpdateAssetsSubpathFromConfig(w.ConfigService.Config())
|
||||
if err := utils.UpdateAssetsSubpathFromConfig(w.ConfigService.Config()); err != nil {
|
||||
mlog.Error("Failed to update assets subpath from config", mlog.Err(err))
|
||||
}
|
||||
|
||||
staticDir, _ := fileutils.FindDir(model.CLIENT_DIR)
|
||||
mlog.Debug(fmt.Sprintf("Using client directory at %v", staticDir))
|
||||
|
||||
Ссылка в новой задаче
Block a user