mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 21:32:18 -06:00
[14.0][FIX] document_page: Stored XSS
unitary tests added post-migration script added
This commit is contained in:
@@ -27,7 +27,7 @@ class DocumentPage(models.Model):
|
||||
"document.page", "Category", domain=[("type", "=", "category")]
|
||||
)
|
||||
child_ids = fields.One2many("document.page", "parent_id", "Children")
|
||||
content = fields.Text(
|
||||
content = fields.Html(
|
||||
"Content",
|
||||
compute="_compute_content",
|
||||
inverse="_inverse_content",
|
||||
|
||||
@@ -16,7 +16,7 @@ class DocumentPageHistory(models.Model):
|
||||
page_id = fields.Many2one("document.page", "Page", ondelete="cascade")
|
||||
name = fields.Char(index=True)
|
||||
summary = fields.Char(index=True)
|
||||
content = fields.Text()
|
||||
content = fields.Html()
|
||||
diff = fields.Text(compute="_compute_diff")
|
||||
|
||||
company_id = fields.Many2one(
|
||||
|
||||
Reference in New Issue
Block a user