Commit 6a2e074c authored by Jérome Perrin's avatar Jérome Perrin

ci_slideshow: fix missing html escapes

parent 686d70cd
...@@ -4,6 +4,7 @@ Presentation Layout ?portal_skin=CI_slideshow ...@@ -4,6 +4,7 @@ Presentation Layout ?portal_skin=CI_slideshow
================================================================================ ================================================================================
""" """
import re import re
from Products.PythonScripts.standard import html_quote
container.REQUEST.RESPONSE.setHeader('content-type', 'text/html') container.REQUEST.RESPONSE.setHeader('content-type', 'text/html')
...@@ -85,11 +86,10 @@ document = context ...@@ -85,11 +86,10 @@ document = context
# wkhtmltopdf # wkhtmltopdf
document_output_type = document.REQUEST.form.get("output", default=None) document_output_type = document.REQUEST.form.get("output", default=None)
document_reference = document.getReference()
document_content = removeEmptyDetails(document.getTextContent()) document_content = removeEmptyDetails(document.getTextContent())
document_theme = getThemeFromFirstFollowUpProduct(document_reference) document_theme = getThemeFromFirstFollowUpProduct(document.getReference())
document_title = document.getTitle() document_title = html_quote(document.getTitle())
document_description = document.getDescription() document_description = html_quote(document.getDescription())
document_creation_date = document.getCreationDate() document_creation_date = document.getCreationDate()
document_creation_year = document_creation_date.strftime('%Y') if document_creation_date else '' document_creation_year = document_creation_date.strftime('%Y') if document_creation_date else ''
document_theme_logo_url = "NXD-Media.Logo." + document_theme.capitalize() document_theme_logo_url = "NXD-Media.Logo." + document_theme.capitalize()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment