mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 13:22:19 -06:00
[14.0][FIX] document_page: Stored XSS
unitary tests added post-migration script added
This commit is contained in:
9
document_page/migrations/14.0.1.2.4/post-migration.py
Normal file
9
document_page/migrations/14.0.1.2.4/post-migration.py
Normal 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
|
||||
Reference in New Issue
Block a user