]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Diego Woitasen <diegows <at> xtech.com.ar>
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 30 May 2009 13:04:44 +0000 (01:04 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 30 May 2009 13:04:44 +0000 (01:04 +1200)
Fix stripping NT domain in squid_ldap_group

helpers/external_acl/ldap_group/squid_ldap_group.c

index 346f4062489f8c6bd9f0551bf9b37b23e23186fc..215e401d99e69bbf212230ae7630a8f6b2066723 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;
         }