Skip to content
Snippets Groups Projects
Commit 07afe3c4 authored by juanf's avatar juanf
Browse files

SSDM-2660 : Cleaner cleans tags used for code injection.

SVN: 35629
parent 1f22ef53
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,7 @@ def updateIfIsPropertyRichText(properties, propertyCode, propertyValue): ...@@ -73,6 +73,7 @@ def updateIfIsPropertyRichText(properties, propertyCode, propertyValue):
if isPropertyRichText(properties, propertyCode): if isPropertyRichText(properties, propertyCode):
if propertyValue is not None: if propertyValue is not None:
cleanerProperties = CleanerProperties(); cleanerProperties = CleanerProperties();
cleanerProperties.setPruneTags("meta, link, script");
cleaner = HtmlCleaner(cleanerProperties); cleaner = HtmlCleaner(cleanerProperties);
htmlSerializer = SimpleHtmlSerializer(cleanerProperties); htmlSerializer = SimpleHtmlSerializer(cleanerProperties);
propertytagNode = cleaner.clean(propertyValue); propertytagNode = cleaner.clean(propertyValue);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment