]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Diego Woitasen <diegows <at> xtech.com.ar>
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 6 Jun 2009 09:59:08 +0000 (21:59 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 6 Jun 2009 09:59:08 +0000 (21:59 +1200)
Fix stripping NT domain in squid_ldap_group

helpers/external_acl/ldap_group/squid_ldap_group.c

index de83da9c1c4b65b1e40e66440c4282630d8b749a..62a8c4baf6009dc81d48d35311291bc90cb23cb2 100644 (file)
@@ -471,9 +471,9 @@ main(int argc, char **argv)
        }
        rfc1738_unescape(user);
        if (strip_nt_domain) {
-           char *u = strchr(user, '\\');
+           char *u = strrchr(user, '\\');
            if (!u)
-               u = strchr(user, '/');
+               u = strrchr(user, '/');
            if (u && u[1])
                user = u + 1;
        }