Commit 347e9845 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed security vulnerabilities. JM-1506

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10938 b35dd754-fafc-0310-a699-88a17e54d16e
parent 443ef34e
......@@ -75,7 +75,7 @@
Map<String, String> errors = new HashMap<String, String>();
if (save) {
if (propName == null || "".equals(propName.trim())) {
if (propName == null || "".equals(propName.trim()) || propName.startsWith("\"")) {
errors.put("propName","");
}
if (propValue == null) {
......@@ -268,12 +268,12 @@ function dodelete(propName) {
<% } %>
</div>
</td>
<td align="center"><a href="#" onclick="doedit('<%= StringUtils.replace(n,"'","''") %>');"
<td align="center"><a href="#" onclick="doedit('<%= StringUtils.replace(StringUtils.escapeHTMLTags(n),"'","''") %>');"
><img src="images/edit-16x16.gif" width="16" height="16"
alt="<fmt:message key="server.properties.alt_edit" />" border="0"></a
>
</td>
<td align="center"><a href="#" onclick="return dodelete('<%= StringUtils.replace(n,"'","''") %>');"
<td align="center"><a href="#" onclick="return dodelete('<%= StringUtils.replace(StringUtils.escapeHTMLTags(n),"'","''") %>');"
><img src="images/delete-16x16.gif" width="16" height="16"
alt="<fmt:message key="server.properties.alt_delete" />" border="0"></a
>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment