[14.0][FIX] document_page: Stored XSS

unitary tests added

post-migration script added
This commit is contained in:
SergiCForgeFlow
2023-08-10 12:55:29 +02:00
parent d1b2e58312
commit eda3c2a1cb
9 changed files with 52 additions and 15 deletions

View File

@@ -0,0 +1,9 @@
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
document_page_history = env["document.page.history"]
for record in document_page_history.search([]):
# Apply default HTML sanitize by reassigning the content
record.content = record.content