Commit dac112c3 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Small fix.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5643 b35dd754-fafc-0310-a699-88a17e54d16e
parent 524dedaa
......@@ -113,6 +113,10 @@ public class LdapVCardProvider implements VCardProvider {
String property = JiveGlobals.getXMLProperty("ldap.vcard-mapping");
Log.debug("Found vcard mapping: '" + property);
try {
// Remove CDATA wrapping element
if (property.startsWith("<![CDATA[")) {
property = property.substring(9, property.length()-3);
}
Document document = DocumentHelper.parseText(property);
template = new VCardTemplate(document);
}
......
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