Skip to content

Commit e97dc8e

Browse files
committed
Fix IPP/PPD names with period and underscore (Issue #1249)
1 parent b876d82 commit e97dc8e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Changes in CUPS v2.4.13 (YYYY-MM-DD)
88
- Fixed a memory leak in `httpClose` (Issue #1223)
99
- Fixed missing commas in `ippCreateRequestedArray` (Issue #1234)
1010
- Fixed subscription issues in the scheduler and D-Bus notifier (Issue #1235)
11+
- Fixed support for IPP/PPD options with periods or underscores (Issue #1249)
1112

1213

1314
Changes in CUPS v2.4.12 (2025-04-08)

cups/ppd-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5667,7 +5667,7 @@ pwg_unppdize_name(const char *ppd, /* I - PPD keyword */
56675667

56685668
for (ptr = name, end = name + namesize - 1; *ppd && ptr < end; ppd ++)
56695669
{
5670-
if (_cups_isalnum(*ppd))
5670+
if (_cups_isalnum(*ppd) || *ppd == '.' || *ppd == '_')
56715671
{
56725672
*ptr++ = (char)tolower(*ppd & 255);
56735673
nodash = 0;

0 commit comments

Comments
 (0)