mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 04:18:48 +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
|
|
@ -27,6 +27,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/lute/html"
|
||||
"github.com/dustin/go-humanize"
|
||||
"github.com/siyuan-note/dejavu"
|
||||
"github.com/siyuan-note/dejavu/cloud"
|
||||
|
|
@ -495,7 +496,7 @@ func ListCloudSyncDir() (syncDirs []*Sync, hSize string, err error) {
|
|||
}
|
||||
|
||||
func formatRepoErrorMsg(err error) string {
|
||||
msg := err.Error()
|
||||
msg := html.EscapeString(err.Error())
|
||||
if errors.Is(err, cloud.ErrCloudAuthFailed) {
|
||||
msg = Conf.Language(31)
|
||||
} else if errors.Is(err, cloud.ErrCloudObjectNotFound) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue