Severin Gehwolf e7a3fef
# Backport patch for upstream Eclipse BZ: 329582 (XSS attack)
Severin Gehwolf e7a3fef
--- plugins/org.eclipse.help.webapp/advanced/content.jsp.orig	2010-04-21 14:00:16.000000000 -0400
Severin Gehwolf e7a3fef
+++ plugins/org.eclipse.help.webapp/advanced/content.jsp	2010-12-10 09:41:14.642196217 -0500
Severin Gehwolf e7a3fef
@@ -45,7 +45,7 @@
Severin Gehwolf e7a3fef
 
Severin Gehwolf e7a3fef
 </head>
Severin Gehwolf e7a3fef
     <frameset id="contentFrameset" rows="<%=frameData.getContentAreaFrameSizes()%>" frameborder=0" framespacing="0" border="0" spacing="0">
Severin Gehwolf e7a3fef
-	<frame name="ContentToolbarFrame" title="<%=ServletResources.getString("topicViewToolbar", request)%>" src='<%="contentToolbar.jsp"+data.getQuery()%>'  marginwidth="0" marginheight="0" scrolling="no" frameborder="0" >
Severin Gehwolf e7a3fef
+	<frame name="ContentToolbarFrame" title="<%=ServletResources.getString("topicViewToolbar", request)%>" src='<%="contentToolbar.jsp"+UrlUtil.htmlEncode(data.getQuery())%>'  marginwidth="0" marginheight="0" scrolling="no" frameborder="0" >
Severin Gehwolf e7a3fef
 	<frame ACCESSKEY="K" name="ContentViewFrame" title="<%=ServletResources.getString("topicView", request)%>" src='<%=UrlUtil.htmlEncode(data.getContentURL())%>'  marginwidth="10"<%=(data.isIE() && "6.0".compareTo(data.getIEVersion()) <=0)?"scrolling=\"yes\"":""%> marginheight="0" frameborder="0" >
Severin Gehwolf e7a3fef
 	<%
Severin Gehwolf e7a3fef
 	    AbstractFrame[] frames = frameData.getFrames(AbstractFrame.BELOW_CONTENT);
Severin Gehwolf e7a3fef
--- plugins/org.eclipse.help.webapp/basic/index.jsp.orig	2010-04-21 14:00:17.000000000 -0400
Severin Gehwolf e7a3fef
+++ plugins/org.eclipse.help.webapp/basic/index.jsp	2010-12-10 09:42:58.516317455 -0500
Severin Gehwolf e7a3fef
@@ -29,8 +29,8 @@
Severin Gehwolf e7a3fef
 <%
Severin Gehwolf e7a3fef
 	}
Severin Gehwolf e7a3fef
 %>
Severin Gehwolf e7a3fef
-	<frame name="TabsFrame" title="<%=ServletResources.getString("helpToolbarFrame", request)%>" src='<%="basic/tabs.jsp"+data.getQuery()%>' marginwidth="5" marginheight="5" scrolling="no">
Severin Gehwolf e7a3fef
-	<frame name="HelpFrame" title="<%=ServletResources.getString("ignore", "HelpFrame", request)%>" src='<%="basic/help.jsp"+data.getQuery()%>' frameborder="no" marginwidth="0" marginheight="0" scrolling="no">
Severin Gehwolf e7a3fef
+	<frame name="TabsFrame" title="<%=ServletResources.getString("helpToolbarFrame", request)%>" src='<%="basic/tabs.jsp"+UrlUtil.htmlEncode(data.getQuery())%>' marginwidth="5" marginheight="5" scrolling="no">
Severin Gehwolf e7a3fef
+	<frame name="HelpFrame" title="<%=ServletResources.getString("ignore", "HelpFrame", request)%>" src='<%="basic/help.jsp"+UrlUtil.htmlEncode(data.getQuery())%>' frameborder="no" marginwidth="0" marginheight="0" scrolling="no">
Severin Gehwolf e7a3fef
 <%
Severin Gehwolf e7a3fef
 	if(!("0".equals(data.getFooterHeight()))){
Severin Gehwolf e7a3fef
 %>