From a104d82e70cbd2f0263c7de5efb4b86d109e1233 Mon Sep 17 00:00:00 2001 From: Renzo Lucioni Date: Wed, 23 Mar 2016 14:08:41 -0400 Subject: [PATCH] Secure templates used to inject Segment and Optimizely --- cms/templates/widgets/segment-io-footer.html | 9 ++++++--- cms/templates/widgets/segment-io.html | 9 +++++---- lms/templates/widgets/optimizely.html | 4 +++- lms/templates/widgets/segment-io-footer.html | 9 ++++++--- lms/templates/widgets/segment-io.html | 5 ++++- 5 files changed, 24 insertions(+), 12 deletions(-) diff --git a/cms/templates/widgets/segment-io-footer.html b/cms/templates/widgets/segment-io-footer.html index e22c11f6d7..62b87cf5fe 100644 --- a/cms/templates/widgets/segment-io-footer.html +++ b/cms/templates/widgets/segment-io-footer.html @@ -1,3 +1,6 @@ +<%page expression_filter="h"/> +<%! from openedx.core.djangolib.js_utils import js_escaped_string %> + % if settings.CMS_SEGMENT_KEY: + % endif diff --git a/lms/templates/widgets/segment-io-footer.html b/lms/templates/widgets/segment-io-footer.html index 6088f5db97..bf77f55425 100644 --- a/lms/templates/widgets/segment-io-footer.html +++ b/lms/templates/widgets/segment-io-footer.html @@ -1,13 +1,16 @@ +<%page expression_filter="h"/> +<%! from openedx.core.djangolib.js_utils import js_escaped_string %> + % if settings.LMS_SEGMENT_KEY: