mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 08:46:09 +01:00
🎨 Escape the notification message https://github.com/siyuan-note/siyuan/issues/7811
This commit is contained in:
parent
7dbfa43de4
commit
0a10285167
7 changed files with 14 additions and 8 deletions
|
|
@ -36,6 +36,7 @@ import (
|
|||
"github.com/88250/gulu"
|
||||
"github.com/88250/lute"
|
||||
"github.com/88250/lute/ast"
|
||||
"github.com/88250/lute/html"
|
||||
"github.com/88250/lute/parse"
|
||||
"github.com/88250/lute/render"
|
||||
"github.com/dustin/go-humanize"
|
||||
|
|
@ -811,7 +812,7 @@ func IndexRepo(memo string) (err error) {
|
|||
eventbus.CtxPushMsg: eventbus.CtxPushMsgToStatusBarAndProgress,
|
||||
})
|
||||
if nil != err {
|
||||
util.PushStatusBar("Index data repo failed: " + err.Error())
|
||||
util.PushStatusBar("Index data repo failed: " + html.EscapeString(err.Error()))
|
||||
return
|
||||
}
|
||||
elapsed := time.Since(start)
|
||||
|
|
@ -992,7 +993,7 @@ func bootSyncRepo() (err error) {
|
|||
autoSyncErrCount++
|
||||
planSyncAfter(fixSyncInterval)
|
||||
|
||||
msg := fmt.Sprintf("sync repo failed: %s", err)
|
||||
msg := fmt.Sprintf("sync repo failed: %s", html.EscapeString(err.Error()))
|
||||
logging.LogErrorf(msg)
|
||||
util.PushStatusBar(msg)
|
||||
util.PushErrMsg(msg, 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue