]> 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:46:54 +0000 (01:46 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 30 May 2009 13:46:54 +0000 (01:46 +1200)
Fix stripping NT domain in squid_ldap_group

helpers/external_acl/ldap_group/squid_ldap_group.c

index 510ce4a7ebdf585fa2b9b73556e9dbf8890672c8..b67dbc8871b94515b2a19cd48ffdf39989a5ef01 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;
         }