From: Michael R Sweet Date: Wed, 7 May 2025 14:34:32 +0000 (-0400) Subject: Fix IPP/PPD names with period and underscore (Issue #1249) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c9d658fe278abc48a67f2ccf05c70f8c239ac83;p=thirdparty%2Fcups.git Fix IPP/PPD names with period and underscore (Issue #1249) --- diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index e9e1e0f7da..61e63ae1c8 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -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;