From a75b69894402c483dc1ac30b45fc3294e79e0b95 Mon Sep 17 00:00:00 2001 From: Mike Hatfield Date: Tue, 2 Jun 2009 07:22:38 +0000 Subject: [PATCH] Minor change to where JSON escaping happens in usercontent data webscript git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14492 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/slingshot/profile/usercontents.get.json.ftl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/alfresco/templates/webscripts/org/alfresco/slingshot/profile/usercontents.get.json.ftl b/config/alfresco/templates/webscripts/org/alfresco/slingshot/profile/usercontents.get.json.ftl index bfaf1392c5..ed770ffdbe 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/slingshot/profile/usercontents.get.json.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/slingshot/profile/usercontents.get.json.ftl @@ -1,5 +1,6 @@ <#macro dateFormat date>${date?string("dd MMM yyyy HH:mm:ss 'GMT'Z '('zzz')'")} <#macro formatDataItems data> + <#escape x as jsonUtils.encodeJSONString(x)> { "items": [ @@ -31,10 +32,9 @@ ] } + -<#escape x as jsonUtils.encodeJSONString(x)> { "created": <@formatDataItems data['created'] />, "modified": <@formatDataItems data['modified'] /> -} - \ No newline at end of file +} \ No newline at end of file