Skip to content

Commit c0b8e48

Browse files
committed
Drop non-keyword characters from PPD names (Issue #1118)
1 parent d516661 commit c0b8e48

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Changes in CUPS v2.4.12 (YYYY-MM-DD)
1111
- Fixed a bug in the make-and-model whitespace trimming code (Issue #1096)
1212
- Fixed a removal of IPP Everywhere permanent queue if installation failed (Issue #1102)
1313
- Fixed `ServerToken None` in scheduler (Issue #1111)
14+
- Fixed invalid IPP keyword values created from PPD option names (Issue #1118)
1415
- Fixed client raster printing from macOS (Issue #1143)
1516
- Fixed the default User-Agent string.
1617
- Fixed a recursion issue in `ippReadIO`.

cups/ppd-cache.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* PPD cache implementation for CUPS.
33
*
4-
* Copyright © 2022-2024 by OpenPrinting.
4+
* Copyright © 2022-2025 by OpenPrinting.
55
* Copyright © 2010-2021 by Apple Inc.
66
*
77
* Licensed under Apache License v2.0. See the file "LICENSE" for more
@@ -5680,11 +5680,6 @@ pwg_unppdize_name(const char *ppd, /* I - PPD keyword */
56805680
nodash = 1;
56815681
}
56825682
}
5683-
else
5684-
{
5685-
*ptr++ = *ppd;
5686-
nodash = 0;
5687-
}
56885683

56895684
if (nodash == 0)
56905685
{

0 commit comments

Comments
 (0)