You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by al...@apache.org on 2026/08/08 12:40:48 UTC
(jspwiki) branch bug/JSPWIKI-1275-2x created (now 3640ad61d)
This is an automated email from the ASF dual-hosted git repository.
spyhunter99 pushed a change to branch bug/JSPWIKI-1275-2x
in repository https://gitbox.apache.org/repos/asf/jspwiki.git
at 3640ad61d JSPWIKI-1275 for 2.x
This branch includes the following new commits:
new 3640ad61d JSPWIKI-1275 for 2.x
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(jspwiki) 01/01: JSPWIKI-1275 for 2.x
Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
spyhunter99 pushed a commit to branch bug/JSPWIKI-1275-2x
in repository https://gitbox.apache.org/repos/asf/jspwiki.git
commit 3640ad61d0371382a84b7b0bf80ffd01b82bed13
Author: Alex O'Ree <al...@apache.org>
AuthorDate: Sat Aug 8 08:40:37 2026 -0400
JSPWIKI-1275 for 2.x
---
jspwiki-war/src/main/webapp/templates/210/EditGroupContent.jsp | 4 ++--
jspwiki-war/src/main/webapp/templates/210/GroupContent.jsp | 6 +++---
jspwiki-war/src/main/webapp/templates/210/NewGroupContent.jsp | 2 +-
jspwiki-war/src/main/webapp/templates/default/EditGroupContent.jsp | 3 ++-
jspwiki-war/src/main/webapp/templates/default/GroupTab.jsp | 3 ++-
5 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/jspwiki-war/src/main/webapp/templates/210/EditGroupContent.jsp b/jspwiki-war/src/main/webapp/templates/210/EditGroupContent.jsp
index f448264d5..0c4828ea0 100644
--- a/jspwiki-war/src/main/webapp/templates/210/EditGroupContent.jsp
+++ b/jspwiki-war/src/main/webapp/templates/210/EditGroupContent.jsp
@@ -105,7 +105,7 @@
<fmt:message key="editgroup.savehelp"><fmt:param><%=name%></fmt:param></fmt:message>
</div>
<input type="submit" name="ok" value="<fmt:message key="editgroup.submit.save"/>" />
- <input type="hidden" name="group" value="<%=name%>" />
+ <input type="hidden" name="group" value="<%=TextUtil.replaceEntities(name)%>" />
<input type="hidden" name="action" value="save" />
</form>
@@ -118,7 +118,7 @@
method="POST" accept-charset="UTF-8">
<wiki:CsrfProtection/>
<input type="submit" name="ok" value="<fmt:message key="actions.deletegroup"/>" />
- <input type="hidden" name="group" value="${param.group}" />
+ <input type="hidden" name="group" value="${TextUtil.replaceEntities(param.group)}" />
</form>
</wiki:Permission>
diff --git a/jspwiki-war/src/main/webapp/templates/210/GroupContent.jsp b/jspwiki-war/src/main/webapp/templates/210/GroupContent.jsp
index 1f37656b1..63ce3e8d6 100644
--- a/jspwiki-war/src/main/webapp/templates/210/GroupContent.jsp
+++ b/jspwiki-war/src/main/webapp/templates/210/GroupContent.jsp
@@ -82,8 +82,8 @@
<wiki:Permission permission="createGroups">
<fmt:message key="group.createsuggestion">
<fmt:param><wiki:Link jsp="NewGroup.jsp">
- <wiki:Param name="group" value="<%=name%>" />
- <wiki:Param name="group" value="<%=name%>" />
+ <wiki:Param name="group" value="<%=TextUtil.replaceEntities(name)%>" />
+ <wiki:Param name="group" value="<%=TextUtil.replaceEntities(name)%>" />
<fmt:message key="group.createit"/>
</wiki:Link>
</fmt:param>
@@ -156,7 +156,7 @@
method="POST" accept-charset="UTF-8">
<wiki:CsrfProtection/>
<input type="submit" name="ok" value="<fmt:message key="actions.deletegroup"/>" />
- <input type="hidden" name="group" value="${param.group}" />
+ <input type="hidden" name="group" value="${TextUtil.replaceEntities(param.group)}" />
</form>
</wiki:Permission>
diff --git a/jspwiki-war/src/main/webapp/templates/210/NewGroupContent.jsp b/jspwiki-war/src/main/webapp/templates/210/NewGroupContent.jsp
index 15aa8263d..d6cf83a38 100644
--- a/jspwiki-war/src/main/webapp/templates/210/NewGroupContent.jsp
+++ b/jspwiki-war/src/main/webapp/templates/210/NewGroupContent.jsp
@@ -72,7 +72,7 @@
<!-- Name -->
<tr>
<th scope="row"><label><fmt:message key="newgroup.name"/></label></th>
- <td><input type="text" name="group" size="30" value="<%=name%>" />
+ <td><input type="text" name="group" size="30" value="<%=TextUtil.replaceEntities(name)%>" />
<div class="formhelp">
<fmt:message key="newgroup.name.description"/>
</div>
diff --git a/jspwiki-war/src/main/webapp/templates/default/EditGroupContent.jsp b/jspwiki-war/src/main/webapp/templates/default/EditGroupContent.jsp
index 0092da87f..dbb7f1580 100644
--- a/jspwiki-war/src/main/webapp/templates/default/EditGroupContent.jsp
+++ b/jspwiki-war/src/main/webapp/templates/default/EditGroupContent.jsp
@@ -24,6 +24,7 @@
<%@ page import="org.apache.wiki.api.core.*" %>
<%@ page import="org.apache.wiki.auth.authorize.Group" %>
<%@ page import="org.apache.wiki.util.comparators.PrincipalComparator" %>
+<%@ page import="org.apache.wiki.util.TextUtil" %>
<%@ page errorPage="/Error.jsp" %>
<%@ taglib uri="http://jspwiki.apache.org/tags" prefix="wiki" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
@@ -63,7 +64,7 @@
id="editGroup"
method="POST" accept-charset="UTF-8">
- <input type="hidden" name="group" value="${name}" />
+ <input type="hidden" name="group" value="${TextUtil.replaceEntities(name)}" />
<wiki:CsrfProtection/>
<div class="form-group">
diff --git a/jspwiki-war/src/main/webapp/templates/default/GroupTab.jsp b/jspwiki-war/src/main/webapp/templates/default/GroupTab.jsp
index c3a521266..bc52488b9 100644
--- a/jspwiki-war/src/main/webapp/templates/default/GroupTab.jsp
+++ b/jspwiki-war/src/main/webapp/templates/default/GroupTab.jsp
@@ -30,6 +30,7 @@
<%@ page import="org.apache.wiki.auth.authorize.GroupManager" %>
<%@ page import="org.apache.wiki.preferences.Preferences" %>
<%@ page import="org.apache.wiki.util.comparators.PrincipalComparator" %>
+<%@ page import="org.apache.wiki.util.TextUtil" %>
<%@ page errorPage="/Error.jsp" %>
<%@ taglib uri="http://jspwiki.apache.org/tags" prefix="wiki" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
@@ -102,7 +103,7 @@
class="hidden"
name="deleteGroupForm" id="deleteGroupForm"
method="POST" accept-charset="UTF-8">
- <input type="hidden" name="group" value="${group.name}" />
+ <input type="hidden" name="group" value="${TextUtil.replaceEntities (group.name)}" />
<wiki:CsrfProtection/>
<input type="submit" name="ok"
data-modal="+ .modal"