]> 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:35:22 +0000 (10:35 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 7 May 2025 14:35:22 +0000 (10:35 -0400)
CHANGES.md
cups/ppd-cache.c

index 896b9b88454ebe4b6fcceee5abdf27c0ea99875b..a1e82cdd68ffc367223139b4412b804e3c5d4705 100644 (file)
@@ -8,6 +8,7 @@ Changes in CUPS v2.4.13 (YYYY-MM-DD)
 - Fixed a memory leak in `httpClose` (Issue #1223)
 - Fixed missing commas in `ippCreateRequestedArray` (Issue #1234)
 - Fixed subscription issues in the scheduler and D-Bus notifier (Issue #1235)
+- Fixed support for IPP/PPD options with periods or underscores (Issue #1249)
 
 
 Changes in CUPS v2.4.12 (2025-04-08)
index a4c2b4c5b816cb9ea344b4a2c967328f528408a1..40aa387210060d9f84c8b43ba21b0f7e8223ba3f 100644 (file)
@@ -5667,7 +5667,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;