]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
2003-05-13 10:18 hno
authorhno <>
Fri, 20 Jun 2003 00:21:59 +0000 (00:21 +0000)
committerhno <>
Fri, 20 Jun 2003 00:21:59 +0000 (00:21 +0000)
Correct handling of Squid-2.5 escaped usernames and passwords

helpers/basic_auth/SMB/smb_auth.c

index bc9a1cdc4c4ecbe46109f333d2ca669953d774b9..0be3c893f6c9e6b5bb16ad4a402dcbae0d35f35e 100644 (file)
@@ -215,6 +215,9 @@ main(int argc, char *argv[])
        pass = s + 1;
        domname = NULL;
 
+       rfc1738_unescape(user);
+       rfc1738_unescape(pass);
+
        if ((s = strchr(user, '\\')) != NULL) {
            *s = '\0';
            domname = user;
@@ -236,8 +239,6 @@ main(int argc, char *argv[])
            (void) printf("ERR\n");
            continue;
        }
-       rfc1738_unescape(user);
-       rfc1738_unescape(pass);
        (void) fprintf(p, "%s\n", dom->name);
        (void) fprintf(p, "%s\n", dom->passthrough);
        (void) fprintf(p, "%s\n", dom->nmbaddr);