mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 05:28:07 +01:00
🐛 Breadcrumbs are escaped multiple times Fix https://github.com/siyuan-note/siyuan/issues/8580
This commit is contained in:
parent
ed5700ebd6
commit
7475d79ba5
3 changed files with 3 additions and 19 deletions
|
|
@ -33,7 +33,6 @@ import (
|
|||
"github.com/88250/gulu"
|
||||
"github.com/88250/lute"
|
||||
"github.com/88250/lute/ast"
|
||||
"github.com/88250/lute/html"
|
||||
"github.com/88250/lute/lex"
|
||||
"github.com/88250/lute/parse"
|
||||
"github.com/88250/vitess-sqlparser/sqlparser"
|
||||
|
|
@ -887,7 +886,7 @@ func fromSQLBlock(sqlBlock *sql.Block, terms string, beforeLen int) (block *Bloc
|
|||
}
|
||||
|
||||
id := sqlBlock.ID
|
||||
content := html.EscapeString(sqlBlock.Content) // Search dialog XSS https://github.com/siyuan-note/siyuan/issues/8525
|
||||
content := util.EscapeHTML(sqlBlock.Content) // Search dialog XSS https://github.com/siyuan-note/siyuan/issues/8525
|
||||
content, _ = markSearch(content, terms, beforeLen)
|
||||
content = maxContent(content, 5120)
|
||||
markdown := maxContent(sqlBlock.Markdown, 5120)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue