Commit db2f4891 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix generate url. It makes ldap support work

parent a7d29155
......@@ -83,9 +83,10 @@ void LdapUrl::setDn(const LdapDN &dn)
{
QString tmp = dn.toString();
if (tmp.startsWith(QLatin1Char('/'))) {
tmp = tmp.mid(1);
setPath(tmp);
} else {
setPath(QLatin1Char('/') + tmp);
}
setPath(tmp);
}
LdapDN LdapUrl::dn() const
......
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