]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Sanitize requesting-user-name as needed (Issue #1145)
authorMichael R Sweet <msweet@msweet.org>
Wed, 14 May 2025 16:22:44 +0000 (12:22 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 14 May 2025 16:22:44 +0000 (12:22 -0400)
backend/ipp.c

index 6fff9bde2033348612b779aeabc0ba10c982d596..c0c93956c3bc0725f0f758d1f4247f656527a8ab 100644 (file)
@@ -1552,6 +1552,8 @@ main(int  argc,                           /* I - Number of command-line args */
       char     *argptr = argv[2],      /* Pointer into local username */
                *userptr = username;    /* Pointer into requesting-user-name value */
 
+      fputs("DEBUG: Trying sanitized requesting-user-name value.\n", stderr);
+
       while (*argptr && userptr < (username + sizeof(username) - 1))
       {
         if (isalnum(*argptr & 255))