From do-not-reply at jboss.org Wed Sep 7 05:49:58 2011 Content-Type: multipart/mixed; boundary="===============1228083589430690209==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r7327 - in portal/branches/xss: webui/portal/src/main/java/org/exoplatform/portal/webui/portal and 1 other directory. Date: Wed, 07 Sep 2011 05:49:58 -0400 Message-ID: <201109070949.p879nwZj008069@svn01.web.mwc.hst.phx2.redhat.com> --===============1228083589430690209== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ndkhoiits Date: 2011-09-07 05:49:58 -0400 (Wed, 07 Sep 2011) New Revision: 7327 Modified: portal/branches/xss/portlet/exoadmin/src/main/webapp/groovy/navigation/w= ebui/component/UISiteManagement.gtmpl portal/branches/xss/webui/portal/src/main/java/org/exoplatform/portal/we= bui/portal/UIPortalForm.java Log: GTNPORTAL-2062 XSS issue when entering site description Modified: portal/branches/xss/portlet/exoadmin/src/main/webapp/groovy/navig= ation/webui/component/UISiteManagement.gtmpl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- portal/branches/xss/portlet/exoadmin/src/main/webapp/groovy/navigation/= webui/component/UISiteManagement.gtmpl 2011-09-07 09:23:51 UTC (rev 7326) +++ portal/branches/xss/portlet/exoadmin/src/main/webapp/groovy/navigation/= webui/component/UISiteManagement.gtmpl 2011-09-07 09:49:58 UTC (rev 7327) @@ -1,28 +1,34 @@ <% + import org.exoplatform.portal.config.UserPortalConfigService; import org.exoplatform.webui.core.UIComponent ; import org.exoplatform.webui.form.UIForm; - import java.text.DateFormat; - import java.text.SimpleDateFormat; - import org.exoplatform.portal.config.UserPortalConfigService; - = + = + import org.gatein.common.text.EntityEncoder; + = String[] actions =3D uicomponent.getActions(); uicomponent.loadPortalConfigs(); def rcontext =3D _ctx.getRequestContext(); def userPortalConfigService =3D uicomponent.getApplicationComponent(User= PortalConfigService.class); def defaultPortalName =3D userPortalConfigService.getDefaultPortal(); + EntityEncoder encoder =3D EntityEncoder.FULL; + = + String editLayoutLabel =3D _ctx.appRes("UISiteManagement.label.editLayou= t"); + String editNavigationLabel =3D _ctx.appRes("UISiteManagement.label.editN= av"); + String editPortalPropLabel =3D _ctx.appRes("UISiteManagement.label.editP= ortalProp"); + String deletePortalLabel =3D _ctx.appRes("UISiteManagement.label.deleteP= ortal"); %>
+ <%
+ for (portalConfig in uicomponent.getPortalConfigs()) { =
=
+ %>
+
=
+ |
+ + " class=3D"EditLayoutIcon">$editLayou= tLabel + " class=3D"EditNavIcon">$editNavigation= Label + '}]))" class=3D"EditNavIcon">$edi= tPortalPropLabel + = + <% if(defaultPortalName !=3D null && !defa= ultPortalName.equals(portalConfig.getName())) {%> + " class=3D"DeleteIcon">$deletePortalLab= el + <% } %> + | +
- - | +
+ + |