💄 Unsafe renders page content
All checks were successful
/ docker (push) Successful in 1m4s

This commit is contained in:
Maxim Lebedev 2023-11-08 07:43:38 +06:00
parent a4075213a3
commit 0f909007d8
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
2 changed files with 2 additions and 2 deletions

View File

@ -36,6 +36,6 @@ func NewPage(base BaseOf, page *domain.Page) Page {
{% endfunc %}
{% func (p Page) Body() %}
<p>{%z p.page.Content %}</p>
<p>{%z= p.page.Content %}</p>
{% endfunc %}
{% endstripspace %}

View File

@ -124,7 +124,7 @@ func (p Page) StreamBody(qw422016 *qt422016.Writer) {
//line web/template/page.qtpl:38
qw422016.N().S(`<p>`)
//line web/template/page.qtpl:39
qw422016.E().Z(p.page.Content)
qw422016.N().Z(p.page.Content)
//line web/template/page.qtpl:39
qw422016.N().S(`</p>`)
//line web/template/page.qtpl:40