Commit 1d2f0759 authored by guus's avatar guus

All property values that contain passwords should be masked. This wasn't...

All property values that contain passwords should be masked. This wasn't working properly for properties of which the name contained an uppercase letter (e.g ldap.Password). (OF-89)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11508 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8c61ad39
......@@ -261,7 +261,9 @@ function dodelete(propName) {
</td>
<td>
<div class="hidebox" style="width:300px;">
<% if (n.indexOf("passwd") > -1 || n.indexOf("password") > -1 || n.indexOf("cookieKey") > -1) { %>
<% if (n.toLowerCase().indexOf("passwd") > -1 ||
n.toLowerCase().indexOf("password") > -1 ||
n.toLowerCase().indexOf("cookieKey") > -1) { %>
<span style="color:#999;"><i>hidden</i></span>
<% } else { %>
<span title="<%= ("".equals(v) ? "&nbsp;" : v) %>"><%= ("".equals(v) ? "&nbsp;" : v) %></span>
......
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