knowledge/document_page/migrations/14.0.1.2.4/post-migration.py
SergiCForgeFlow eda3c2a1cb [14.0][FIX] document_page: Stored XSS
unitary tests added

post-migration script added
2023-08-28 13:03:48 +02:00

10 lines
305 B
Python

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