]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix IPP/PPD names with period and underscore (Issue #1249)
authorMichael R Sweet <msweet@msweet.org>
Wed, 7 May 2025 14:34:32 +0000 (10:34 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 7 May 2025 14:34:32 +0000 (10:34 -0400)
cups/ppd-cache.c

index e9e1e0f7da70752e39cf6ee1a45e49482a01ab69..61e63ae1c891e98a1878439f478ab9168fc815d2 100644 (file)
@@ -5832,7 +5832,7 @@ pwg_unppdize_name(const char *ppd,        /* I - PPD keyword */
 
   for (ptr = name, end = name + namesize - 1; *ppd && ptr < end; ppd ++)
   {
-    if (_cups_isalnum(*ppd))
+    if (_cups_isalnum(*ppd) || *ppd == '.' || *ppd == '_')
     {
       *ptr++ = (char)tolower(*ppd & 255);
       nodash = 0;