From adc9183a07602bbebecd795c432abfccc4afcbc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Thu, 29 Oct 2015 11:31:27 +0100 Subject: [PATCH] Bug #4105: Fix start_script input for template update (cherry picked from commit 4ee8b80cb5b99071e34f56e82d788764763ad1fd) --- .../templates-tab/form-panels/create/wizard-tabs/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context.js index fc82211803..e6b8ad109c 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/context.js @@ -351,7 +351,7 @@ define(function(require) { $("#ENCODE_START_SCRIPT", context).prop('checked', 'checked'); $("#START_SCRIPT", context).val(atob(value)); } else if ("START_SCRIPT" == key) { - $("#START_SCRIPT", context).val(value); + $("#START_SCRIPT", context).val(TemplateUtils.escapeDoubleQuotes(TemplateUtils.htmlDecode(value))); } else { customTagsJSON[key] = value; }