From do-not-reply at jboss.org Mon Sep 12 06:38:27 2011 Content-Type: multipart/mixed; boundary="===============8443773437071123838==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r7351 - in portal/branches/xss-issues: webui/portal/src/main/java/org/exoplatform/portal/webui/portal and 1 other directory. Date: Mon, 12 Sep 2011 06:38:27 -0400 Message-ID: <201109121038.p8CAcRco015587@svn01.web.mwc.hst.phx2.redhat.com> --===============8443773437071123838== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ndkhoiits Date: 2011-09-12 06:38:27 -0400 (Mon, 12 Sep 2011) New Revision: 7351 Modified: portal/branches/xss-issues/portlet/exoadmin/src/main/webapp/groovy/navig= ation/webui/component/UISiteManagement.gtmpl portal/branches/xss-issues/webui/portal/src/main/java/org/exoplatform/po= rtal/webui/portal/UIPortalForm.java Log: GTNPORTAL-2062 XSS issue when entering site description Modified: portal/branches/xss-issues/portlet/exoadmin/src/main/webapp/groov= y/navigation/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-issues/portlet/exoadmin/src/main/webapp/groovy/navi= gation/webui/component/UISiteManagement.gtmpl 2011-09-12 10:26:25 UTC (rev = 7350) +++ portal/branches/xss-issues/portlet/exoadmin/src/main/webapp/groovy/navi= gation/webui/component/UISiteManagement.gtmpl 2011-09-12 10:38:27 UTC (rev = 7351) @@ -1,76 +1,81 @@ <% + 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 + <% } %> + | +
- - | +
+ + |